99using Flow . Launcher . Infrastructure . UserSettings ;
1010using Flow . Launcher . Plugin . SharedCommands ;
1111using System . Linq ;
12+ using static Flow . Launcher . Core . MessageBoxEx ;
1213
1314namespace Flow . Launcher . Core . Configuration
1415{
@@ -40,7 +41,7 @@ public void DisablePortableMode()
4041#endif
4142 IndicateDeletion ( DataLocation . PortableDataPath ) ;
4243
43- MessageBox . Show ( "Flow Launcher needs to restart to finish disabling portable mode, " +
44+ MessageBoxEx . Show ( "Flow Launcher needs to restart to finish disabling portable mode, " +
4445 "after the restart your portable data profile will be deleted and roaming data profile kept" ) ;
4546
4647 UpdateManager . RestartApp ( Constant . ApplicationFileName ) ;
@@ -64,7 +65,7 @@ public void EnablePortableMode()
6465#endif
6566 IndicateDeletion ( DataLocation . RoamingDataPath ) ;
6667
67- MessageBox . Show ( "Flow Launcher needs to restart to finish enabling portable mode, " +
68+ MessageBoxEx . Show ( "Flow Launcher needs to restart to finish enabling portable mode, " +
6869 "after the restart your roaming data profile will be deleted and portable data profile kept" ) ;
6970
7071 UpdateManager . RestartApp ( Constant . ApplicationFileName ) ;
@@ -159,9 +160,9 @@ public void PreStartCleanUpAfterPortabilityUpdate()
159160 {
160161 FilesFolders . RemoveFolderIfExists ( roamingDataDir ) ;
161162
162- if ( MessageBox . Show ( "Flow Launcher has detected you enabled portable mode, " +
163+ if ( MessageBoxEx . Show ( "Flow Launcher has detected you enabled portable mode, " +
163164 "would you like to move it to a different location?" , string . Empty ,
164- MessageBoxButton . YesNo ) == MessageBoxResult . Yes )
165+ MessageBoxType . YesNo ) == MessageBoxResult . Yes )
165166 {
166167 FilesFolders . OpenPath ( Constant . RootDirectory ) ;
167168
@@ -174,7 +175,7 @@ public void PreStartCleanUpAfterPortabilityUpdate()
174175 {
175176 FilesFolders . RemoveFolderIfExists ( portableDataDir ) ;
176177
177- MessageBox . Show ( "Flow Launcher has detected you disabled portable mode, " +
178+ MessageBoxEx . Show ( "Flow Launcher has detected you disabled portable mode, " +
178179 "the relevant shortcuts and uninstaller entry have been created" ) ;
179180 }
180181 }
@@ -186,7 +187,7 @@ public bool CanUpdatePortability()
186187
187188 if ( roamingLocationExists && portableLocationExists )
188189 {
189- MessageBox . Show ( string . Format ( "Flow Launcher detected your user data exists both in {0} and " +
190+ MessageBoxEx . Show ( string . Format ( "Flow Launcher detected your user data exists both in {0} and " +
190191 "{1}. {2}{2}Please delete {1} in order to proceed. No changes have occurred." ,
191192 DataLocation . PortableDataPath , DataLocation . RoamingDataPath , Environment . NewLine ) ) ;
192193
0 commit comments