Skip to content

Commit

Permalink
show no tips
Browse files Browse the repository at this point in the history
  • Loading branch information
Mossimos committed May 25, 2021
1 parent 26d7690 commit 6cfd47c
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public IdleAppWindowViewModel() : base()
//this.WhenAnyValue(x => x.IdleGameList)
// .Subscribe(x => x?.ToObservableChangeSet()
// .AutoRefresh(x => x.Process));
Refresh_Click();
Refresh_Click(false);
}
private string? _RunStateTxt;
public string? RunStateTxt
Expand Down Expand Up @@ -232,7 +232,7 @@ public void RunOrStop(SteamApp app)
app.Process = null;
}
}
public void Refresh_Click()
public void Refresh_Click(bool showTips=true)
{
IdleGameList.Clear();
var list = new ObservableCollection<SteamApp>();
Expand Down Expand Up @@ -285,6 +285,7 @@ public void Refresh_Click()
var count = IdleGameList.Count(x => x.Process != null);
RuningCountTxt = AppResources.GameList_RuningCount.Format(count, IdleGameList.Count);
Title = ThisAssembly.AssemblyTrademark + " | " + AppResources.GameList_IdleGamesManger + AppResources.GameList_ListCount.Format(IdleGameList.Count, SteamConnectService.Current.SteamAFKMaxCount);
if(showTips)
Toast.Show(AppResources.GameList_OperationSuccess);
}

Expand Down

0 comments on commit 6cfd47c

Please sign in to comment.