@@ -40,7 +40,7 @@ public void DisablePortableMode()
4040#endif
4141 IndicateDeletion ( DataLocation . PortableDataPath ) ;
4242
43- MessageBoxEx . Show ( "Flow Launcher needs to restart to finish disabling portable mode, " +
43+ AppExtensions . API . ShowMsgBox ( "Flow Launcher needs to restart to finish disabling portable mode, " +
4444 "after the restart your portable data profile will be deleted and roaming data profile kept" ) ;
4545
4646 UpdateManager . RestartApp ( Constant . ApplicationFileName ) ;
@@ -64,7 +64,7 @@ public void EnablePortableMode()
6464#endif
6565 IndicateDeletion ( DataLocation . RoamingDataPath ) ;
6666
67- MessageBoxEx . Show ( "Flow Launcher needs to restart to finish enabling portable mode, " +
67+ AppExtensions . API . ShowMsgBox ( "Flow Launcher needs to restart to finish enabling portable mode, " +
6868 "after the restart your roaming data profile will be deleted and portable data profile kept" ) ;
6969
7070 UpdateManager . RestartApp ( Constant . ApplicationFileName ) ;
@@ -95,13 +95,13 @@ public void RemoveUninstallerEntry()
9595
9696 public void MoveUserDataFolder ( string fromLocation , string toLocation )
9797 {
98- FilesFolders . CopyAll ( fromLocation , toLocation , MessageBoxEx . Show ) ;
98+ FilesFolders . CopyAll ( fromLocation , toLocation , ( s ) => AppExtensions . API . ShowMsgBox ( s ) ) ;
9999 VerifyUserDataAfterMove ( fromLocation , toLocation ) ;
100100 }
101101
102102 public void VerifyUserDataAfterMove ( string fromLocation , string toLocation )
103103 {
104- FilesFolders . VerifyBothFolderFilesEqual ( fromLocation , toLocation , MessageBoxEx . Show ) ;
104+ FilesFolders . VerifyBothFolderFilesEqual ( fromLocation , toLocation , ( s ) => AppExtensions . API . ShowMsgBox ( s ) ) ;
105105 }
106106
107107 public void CreateShortcuts ( )
@@ -157,13 +157,13 @@ public void PreStartCleanUpAfterPortabilityUpdate()
157157 // delete it and prompt the user to pick the portable data location
158158 if ( File . Exists ( roamingDataDeleteFilePath ) )
159159 {
160- FilesFolders . RemoveFolderIfExists ( roamingDataDir , MessageBoxEx . Show ) ;
160+ FilesFolders . RemoveFolderIfExists ( roamingDataDir , ( s ) => AppExtensions . API . ShowMsgBox ( s ) ) ;
161161
162- if ( MessageBoxEx . Show ( "Flow Launcher has detected you enabled portable mode, " +
162+ if ( AppExtensions . API . ShowMsgBox ( "Flow Launcher has detected you enabled portable mode, " +
163163 "would you like to move it to a different location?" , string . Empty ,
164164 MessageBoxButton . YesNo ) == MessageBoxResult . Yes )
165165 {
166- FilesFolders . OpenPath ( Constant . RootDirectory , MessageBoxEx . Show ) ;
166+ FilesFolders . OpenPath ( Constant . RootDirectory , ( s ) => AppExtensions . API . ShowMsgBox ( s ) ) ;
167167
168168 Environment . Exit ( 0 ) ;
169169 }
@@ -172,9 +172,9 @@ public void PreStartCleanUpAfterPortabilityUpdate()
172172 // delete it and notify the user about it.
173173 else if ( File . Exists ( portableDataDeleteFilePath ) )
174174 {
175- FilesFolders . RemoveFolderIfExists ( portableDataDir , MessageBoxEx . Show ) ;
175+ FilesFolders . RemoveFolderIfExists ( portableDataDir , ( s ) => AppExtensions . API . ShowMsgBox ( s ) ) ;
176176
177- MessageBoxEx . Show ( "Flow Launcher has detected you disabled portable mode, " +
177+ AppExtensions . API . ShowMsgBox ( "Flow Launcher has detected you disabled portable mode, " +
178178 "the relevant shortcuts and uninstaller entry have been created" ) ;
179179 }
180180 }
@@ -186,7 +186,7 @@ public bool CanUpdatePortability()
186186
187187 if ( roamingLocationExists && portableLocationExists )
188188 {
189- MessageBoxEx . Show ( string . Format ( "Flow Launcher detected your user data exists both in {0} and " +
189+ AppExtensions . API . ShowMsgBox ( string . Format ( "Flow Launcher detected your user data exists both in {0} and " +
190190 "{1}. {2}{2}Please delete {1} in order to proceed. No changes have occurred." ,
191191 DataLocation . PortableDataPath , DataLocation . RoamingDataPath , Environment . NewLine ) ) ;
192192
0 commit comments