Skip to content

Commit 6cfd47c

Browse files
committed
show no tips
1 parent 26d7690 commit 6cfd47c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/ST.Client.Desktop/UI/ViewModels/Windows/GameListPage/IdleAppWindowViewModel.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public IdleAppWindowViewModel() : base()
2525
//this.WhenAnyValue(x => x.IdleGameList)
2626
// .Subscribe(x => x?.ToObservableChangeSet()
2727
// .AutoRefresh(x => x.Process));
28-
Refresh_Click();
28+
Refresh_Click(false);
2929
}
3030
private string? _RunStateTxt;
3131
public string? RunStateTxt
@@ -232,7 +232,7 @@ public void RunOrStop(SteamApp app)
232232
app.Process = null;
233233
}
234234
}
235-
public void Refresh_Click()
235+
public void Refresh_Click(bool showTips=true)
236236
{
237237
IdleGameList.Clear();
238238
var list = new ObservableCollection<SteamApp>();
@@ -285,6 +285,7 @@ public void Refresh_Click()
285285
var count = IdleGameList.Count(x => x.Process != null);
286286
RuningCountTxt = AppResources.GameList_RuningCount.Format(count, IdleGameList.Count);
287287
Title = ThisAssembly.AssemblyTrademark + " | " + AppResources.GameList_IdleGamesManger + AppResources.GameList_ListCount.Format(IdleGameList.Count, SteamConnectService.Current.SteamAFKMaxCount);
288+
if(showTips)
288289
Toast.Show(AppResources.GameList_OperationSuccess);
289290
}
290291

0 commit comments

Comments
 (0)