Skip to content

Commit cdd5bf1

Browse files
committed
Swap title/subtitle for ShowMsgError
1 parent c00d8db commit cdd5bf1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Flow.Launcher/PublicAPIInstance.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -399,16 +399,16 @@ public void OpenDirectory(string directoryPath, string fileNameOrFilePath = null
399399
{
400400
LogError(ClassName, "File Manager not found");
401401
ShowMsgError(
402-
string.Format(GetTranslation("fileManagerNotFound"), ex.Message),
403-
GetTranslation("fileManagerNotFoundTitle")
402+
GetTranslation("fileManagerNotFoundTitle"),
403+
string.Format(GetTranslation("fileManagerNotFound"), ex.Message)
404404
);
405405
}
406406
catch (Exception ex)
407407
{
408408
LogException(ClassName, "Failed to open folder", ex);
409409
ShowMsgError(
410-
string.Format(GetTranslation("folderOpenError"), ex.Message),
411-
GetTranslation("errorTitle")
410+
GetTranslation("errorTitle"),
411+
string.Format(GetTranslation("folderOpenError"), ex.Message)
412412
);
413413
}
414414
}
@@ -437,8 +437,8 @@ private void OpenUri(Uri uri, bool? inPrivate = null, bool forceBrowser = false)
437437
var tabOrWindow = browserInfo.OpenInTab ? "tab" : "window";
438438
LogException(ClassName, $"Failed to open URL in browser {tabOrWindow}: {path}, {inPrivate ?? browserInfo.EnablePrivate}, {browserInfo.PrivateArg}", e);
439439
ShowMsgError(
440-
GetTranslation("browserOpenError"),
441-
GetTranslation("errorTitle")
440+
GetTranslation("errorTitle"),
441+
GetTranslation("browserOpenError")
442442
);
443443
}
444444
}

0 commit comments

Comments
 (0)