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()
343
343
344
344
public void OnSecondAppStarted ( )
345
345
{
346
- Ioc . Default . GetRequiredService < MainViewModel > ( ) . Show ( ) ;
346
+ API . ShowMainWindow ( ) ;
347
347
}
348
348
349
349
#endregion
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ internal static void SetCustomQueryHotkey(CustomPluginHotkey hotkey)
136
136
if ( _mainViewModel . ShouldIgnoreHotkeys ( ) )
137
137
return ;
138
138
139
- _mainViewModel . Show ( ) ;
139
+ App . API . ShowMainWindow ( ) ;
140
140
_mainViewModel . ChangeQueryText ( hotkey . ActionKeyword , true ) ;
141
141
} ) ;
142
142
}
Original file line number Diff line number Diff line change @@ -60,8 +60,7 @@ public bool StartFlowLauncherOnSystemStartup
60
60
}
61
61
catch ( Exception e )
62
62
{
63
- Notification . Show ( App . API . GetTranslation ( "setAutoStartFailed" ) ,
64
- e . Message ) ;
63
+ App . API . ShowMsg ( App . API . GetTranslation ( "setAutoStartFailed" ) , e . Message ) ;
65
64
}
66
65
}
67
66
}
@@ -88,8 +87,7 @@ public bool UseLogonTaskForStartup
88
87
}
89
88
catch ( Exception e )
90
89
{
91
- Notification . Show ( App . API . GetTranslation ( "setAutoStartFailed" ) ,
92
- e . Message ) ;
90
+ App . API . ShowMsg ( App . API . GetTranslation ( "setAutoStartFailed" ) , e . Message ) ;
93
91
}
94
92
}
95
93
}
Original file line number Diff line number Diff line change 16
16
using Flow . Launcher . Core . Plugin ;
17
17
using Flow . Launcher . Infrastructure ;
18
18
using Flow . Launcher . Infrastructure . Hotkey ;
19
- using Flow . Launcher . Infrastructure . Image ;
20
19
using Flow . Launcher . Infrastructure . Logger ;
21
20
using Flow . Launcher . Infrastructure . Storage ;
22
21
using Flow . Launcher . Infrastructure . UserSettings ;
@@ -275,7 +274,7 @@ private async Task ReloadPluginDataAsync()
275
274
Hide ( ) ;
276
275
277
276
await PluginManager . ReloadDataAsync ( ) . ConfigureAwait ( false ) ;
278
- Notification . Show ( App . API . GetTranslation ( "success" ) ,
277
+ App . API . ShowMsg ( App . API . GetTranslation ( "success" ) ,
279
278
App . API . GetTranslation ( "completedSuccessfully" ) ) ;
280
279
}
281
280
You can’t perform that action at this time.
0 commit comments