File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/ST.Client.Desktop/UI/ViewModels/Windows/GameListPage Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ public IdleAppWindowViewModel() : base()
25
25
//this.WhenAnyValue(x => x.IdleGameList)
26
26
// .Subscribe(x => x?.ToObservableChangeSet()
27
27
// .AutoRefresh(x => x.Process));
28
- Refresh_Click ( ) ;
28
+ Refresh_Click ( false ) ;
29
29
}
30
30
private string ? _RunStateTxt ;
31
31
public string ? RunStateTxt
@@ -232,7 +232,7 @@ public void RunOrStop(SteamApp app)
232
232
app . Process = null ;
233
233
}
234
234
}
235
- public void Refresh_Click ( )
235
+ public void Refresh_Click ( bool showTips = true )
236
236
{
237
237
IdleGameList . Clear ( ) ;
238
238
var list = new ObservableCollection < SteamApp > ( ) ;
@@ -285,6 +285,7 @@ public void Refresh_Click()
285
285
var count = IdleGameList . Count ( x => x . Process != null ) ;
286
286
RuningCountTxt = AppResources . GameList_RuningCount . Format ( count , IdleGameList . Count ) ;
287
287
Title = ThisAssembly . AssemblyTrademark + " | " + AppResources . GameList_IdleGamesManger + AppResources . GameList_ListCount . Format ( IdleGameList . Count , SteamConnectService . Current . SteamAFKMaxCount ) ;
288
+ if ( showTips )
288
289
Toast . Show ( AppResources . GameList_OperationSuccess ) ;
289
290
}
290
291
You can’t perform that action at this time.
0 commit comments