File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ public void DisablePortableMode()
4848 API . ShowMsgBox ( "Flow Launcher needs to restart to finish disabling portable mode, " +
4949 "after the restart your portable data profile will be deleted and roaming data profile kept" ) ;
5050
51- UpdateManager . RestartApp ( Constant . ApplicationFileName ) ;
51+ API . RestartApp ( ) ;
5252 }
5353 catch ( Exception e )
5454 {
@@ -72,7 +72,7 @@ public void EnablePortableMode()
7272 API . ShowMsgBox ( "Flow Launcher needs to restart to finish enabling portable mode, " +
7373 "after the restart your roaming data profile will be deleted and portable data profile kept" ) ;
7474
75- UpdateManager . RestartApp ( Constant . ApplicationFileName ) ;
75+ API . RestartApp ( ) ;
7676 }
7777 catch ( Exception e )
7878 {
Original file line number Diff line number Diff line change 11using System ;
22using System . Collections . Generic ;
3+ using System . Linq ;
34using System . Net ;
45using System . Net . Http ;
56using System . Net . Sockets ;
6- using System . Linq ;
77using System . Text . Json ;
88using System . Text . Json . Serialization ;
99using System . Threading ;
1010using System . Threading . Tasks ;
1111using System . Windows ;
12- using Flow . Launcher . Plugin . SharedCommands ;
1312using Flow . Launcher . Infrastructure ;
1413using Flow . Launcher . Infrastructure . Http ;
1514using Flow . Launcher . Infrastructure . UserSettings ;
1615using Flow . Launcher . Plugin ;
16+ using Flow . Launcher . Plugin . SharedCommands ;
1717using JetBrains . Annotations ;
1818using Squirrel ;
1919
@@ -89,7 +89,7 @@ public async Task UpdateAppAsync(bool silentUpdate = true)
8989
9090 if ( _api . ShowMsgBox ( newVersionTips , _api . GetTranslation ( "update_flowlauncher_new_update" ) , MessageBoxButton . YesNo ) == MessageBoxResult . Yes )
9191 {
92- UpdateManager . RestartApp ( Constant . ApplicationFileName ) ;
92+ _api . RestartApp ( ) ;
9393 }
9494 }
9595 catch ( Exception e )
You can’t perform that action at this time.
0 commit comments