diff --git a/Flow.Launcher/PublicAPIInstance.cs b/Flow.Launcher/PublicAPIInstance.cs index 84448a685..6516388ac 100644 --- a/Flow.Launcher/PublicAPIInstance.cs +++ b/Flow.Launcher/PublicAPIInstance.cs @@ -356,7 +356,7 @@ namespace Flow.Launcher catch (System.ComponentModel.Win32Exception ex) when (ex.NativeErrorCode == 2) { // File Manager not found - MessageBoxEx.Show( + ShowMsgBox( string.Format(GetTranslation("fileManagerNotFound"), ex.Message), GetTranslation("fileManagerNotFoundTitle"), MessageBoxButton.OK, @@ -366,7 +366,7 @@ namespace Flow.Launcher catch (Exception ex) { // Other exceptions - MessageBoxEx.Show( + ShowMsgBox( string.Format(GetTranslation("folderOpenError"), ex.Message), GetTranslation("errorTitle"), MessageBoxButton.OK, diff --git a/Flow.Launcher/SelectFileManagerWindow.xaml.cs b/Flow.Launcher/SelectFileManagerWindow.xaml.cs index 2ab134c85..e77d6f899 100644 --- a/Flow.Launcher/SelectFileManagerWindow.xaml.cs +++ b/Flow.Launcher/SelectFileManagerWindow.xaml.cs @@ -61,7 +61,7 @@ namespace Flow.Launcher // Check if the selected file manager path is valid if (!IsFileManagerValid(CustomExplorer.Path)) { - MessageBoxResult result = MessageBoxEx.Show( + var result = App.API.ShowMsgBox( string.Format((string)Application.Current.FindResource("fileManagerPathNotFound"), CustomExplorer.Name, CustomExplorer.Path), (string)Application.Current.FindResource("fileManagerPathError"),