Merge pull request #3596 from onesounds/250530-AdjustDeleteMessageBox

Update delete confirmation message
This commit is contained in:
DB P 2025-05-30 16:36:27 +09:00 committed by GitHub
commit 94a7dbc4bb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View file

@ -160,6 +160,7 @@ namespace Flow.Launcher
private void KeyEsc_OnPress(object sender, ExecutedRoutedEventArgs e)
{
if (_button == MessageBoxButton.YesNo)
// Follow System.Windows.MessageBox behavior
return;
else if (_button == MessageBoxButton.OK)
_result = MessageBoxResult.OK;
@ -188,6 +189,7 @@ namespace Flow.Launcher
private void Button_Cancel(object sender, RoutedEventArgs e)
{
if (_button == MessageBoxButton.YesNo)
// Follow System.Windows.MessageBox behavior
return;
else if (_button == MessageBoxButton.OK)
_result = MessageBoxResult.OK;

View file

@ -199,7 +199,7 @@ namespace Flow.Launcher.Plugin.Explorer
{
if (Context.API.ShowMsgBox(
string.Format(Context.API.GetTranslation("plugin_explorer_delete_folder_link"), record.FullPath),
string.Empty,
Context.API.GetTranslation("plugin_explorer_deletefilefolder"),
MessageBoxButton.YesNo,
MessageBoxImage.Warning)
== MessageBoxResult.No)