From 6cfd47cb170f02d41d7a6f19a5b1b4678c88b02f Mon Sep 17 00:00:00 2001 From: Mossimo Date: Wed, 26 May 2021 02:31:01 +0800 Subject: [PATCH] show no tips --- .../Windows/GameListPage/IdleAppWindowViewModel.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ST.Client.Desktop/UI/ViewModels/Windows/GameListPage/IdleAppWindowViewModel.cs b/src/ST.Client.Desktop/UI/ViewModels/Windows/GameListPage/IdleAppWindowViewModel.cs index f15624d270f..bf7a1baea31 100644 --- a/src/ST.Client.Desktop/UI/ViewModels/Windows/GameListPage/IdleAppWindowViewModel.cs +++ b/src/ST.Client.Desktop/UI/ViewModels/Windows/GameListPage/IdleAppWindowViewModel.cs @@ -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 @@ -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(); @@ -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); }