Skip to content

Commit

Permalink
🎨 修复快速掉卡模式剩最后一个游戏闪退Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jinzaz committed May 6, 2024
1 parent 542b528 commit 2fb12f1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ private void StartIdle(bool isNext = false)
{
var multi = IdleGameList.Where(z => z.Badge.HoursPlayed >= SteamIdleSettings.MinRunTime.Value).ToList();

if (multi.Count > 1)
if (multi.Count > 1 || (multi.Count == 1 && IdleGameList.Count == 1))
{
idleApp = VerifyIsNext(multi, isNext);
PauseAutoNext(false);
Expand Down Expand Up @@ -701,7 +701,7 @@ private void RunOrStopAutoCardDropCheck(bool b)
{
try
{
Task.Delay(TimeSpan.FromMinutes(SteamIdleSettings.RefreshBadgesTime.Value), DropCardCancellationTokenSource.Token).Wait();
Task.Delay(TimeSpan.FromMinutes(0.5), DropCardCancellationTokenSource.Token).Wait();
AutoCardDropCheck().Wait();
}
catch (AggregateException ae)
Expand Down

0 comments on commit 2fb12f1

Please sign in to comment.