Skip to content

Commit e4577eb

Browse files
committed
Improve code comment
1 parent 95b38d2 commit e4577eb

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Flow.Launcher/PublicAPIInstance.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,18 @@ public void ChangeQuery(string query, bool requery = false)
5757
_mainVM.ChangeQueryText(query, requery);
5858
}
5959

60+
#pragma warning disable VSTHRD100 // Avoid async void methods
61+
6062
public async void RestartApp()
6163
{
6264
_mainVM.Hide();
6365

64-
// we must manually save
66+
// We must manually save
6567
// UpdateManager.RestartApp() will call Environment.Exit(0)
6668
// which will cause ungraceful exit
6769
SaveAppAllSettings();
6870

69-
// wait for all image caches to be saved
71+
// Wait for all image caches to be saved before restarting
7072
await ImageLoader.WaitSaveAsync();
7173

7274
// Restart requires Squirrel's Update.exe to be present in the parent folder,
@@ -75,6 +77,8 @@ public async void RestartApp()
7577
UpdateManager.RestartApp(Constant.ApplicationFileName);
7678
}
7779

80+
#pragma warning restore VSTHRD100 // Avoid async void methods
81+
7882
public void ShowMainWindow() => _mainVM.Show();
7983

8084
public void HideMainWindow() => _mainVM.Hide();

0 commit comments

Comments
 (0)