Skip to content

Commit 3beb4e9

Browse files
committed
Use api functions instead
1 parent c0eaf1c commit 3beb4e9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Flow.Launcher/PublicAPIInstance.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ public void OpenDirectory(string DirectoryPath, string FileNameOrFilePath = null
356356
catch (System.ComponentModel.Win32Exception ex) when (ex.NativeErrorCode == 2)
357357
{
358358
// File Manager not found
359-
MessageBoxEx.Show(
359+
ShowMsgBox(
360360
string.Format(GetTranslation("fileManagerNotFound"), ex.Message),
361361
GetTranslation("fileManagerNotFoundTitle"),
362362
MessageBoxButton.OK,
@@ -366,7 +366,7 @@ public void OpenDirectory(string DirectoryPath, string FileNameOrFilePath = null
366366
catch (Exception ex)
367367
{
368368
// Other exceptions
369-
MessageBoxEx.Show(
369+
ShowMsgBox(
370370
string.Format(GetTranslation("folderOpenError"), ex.Message),
371371
GetTranslation("errorTitle"),
372372
MessageBoxButton.OK,

Flow.Launcher/SelectFileManagerWindow.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ private void btnDone_Click(object sender, RoutedEventArgs e)
6161
// Check if the selected file manager path is valid
6262
if (!IsFileManagerValid(CustomExplorer.Path))
6363
{
64-
MessageBoxResult result = MessageBoxEx.Show(
64+
var result = App.API.ShowMsgBox(
6565
string.Format((string)Application.Current.FindResource("fileManagerPathNotFound"),
6666
CustomExplorer.Name, CustomExplorer.Path),
6767
(string)Application.Current.FindResource("fileManagerPathError"),

0 commit comments

Comments
 (0)