File tree Expand file tree Collapse file tree 4 files changed +5
-8
lines changed Expand file tree Collapse file tree 4 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -343,7 +343,7 @@ public void Dispose()
343343
344344 public void OnSecondAppStarted ( )
345345 {
346- Ioc . Default . GetRequiredService < MainViewModel > ( ) . Show ( ) ;
346+ API . ShowMainWindow ( ) ;
347347 }
348348
349349 #endregion
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ internal static void SetCustomQueryHotkey(CustomPluginHotkey hotkey)
136136 if ( _mainViewModel . ShouldIgnoreHotkeys ( ) )
137137 return ;
138138
139- _mainViewModel . Show ( ) ;
139+ App . API . ShowMainWindow ( ) ;
140140 _mainViewModel . ChangeQueryText ( hotkey . ActionKeyword , true ) ;
141141 } ) ;
142142 }
Original file line number Diff line number Diff line change @@ -60,8 +60,7 @@ public bool StartFlowLauncherOnSystemStartup
6060 }
6161 catch ( Exception e )
6262 {
63- Notification . Show ( App . API . GetTranslation ( "setAutoStartFailed" ) ,
64- e . Message ) ;
63+ App . API . ShowMsg ( App . API . GetTranslation ( "setAutoStartFailed" ) , e . Message ) ;
6564 }
6665 }
6766 }
@@ -88,8 +87,7 @@ public bool UseLogonTaskForStartup
8887 }
8988 catch ( Exception e )
9089 {
91- Notification . Show ( App . API . GetTranslation ( "setAutoStartFailed" ) ,
92- e . Message ) ;
90+ App . API . ShowMsg ( App . API . GetTranslation ( "setAutoStartFailed" ) , e . Message ) ;
9391 }
9492 }
9593 }
Original file line number Diff line number Diff line change 1616using Flow . Launcher . Core . Plugin ;
1717using Flow . Launcher . Infrastructure ;
1818using Flow . Launcher . Infrastructure . Hotkey ;
19- using Flow . Launcher . Infrastructure . Image ;
2019using Flow . Launcher . Infrastructure . Logger ;
2120using Flow . Launcher . Infrastructure . Storage ;
2221using Flow . Launcher . Infrastructure . UserSettings ;
@@ -275,7 +274,7 @@ private async Task ReloadPluginDataAsync()
275274 Hide ( ) ;
276275
277276 await PluginManager . ReloadDataAsync ( ) . ConfigureAwait ( false ) ;
278- Notification . Show ( App . API . GetTranslation ( "success" ) ,
277+ App . API . ShowMsg ( App . API . GetTranslation ( "success" ) ,
279278 App . API . GetTranslation ( "completedSuccessfully" ) ) ;
280279 }
281280
You can’t perform that action at this time.
0 commit comments