mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Merge pull request #3596 from onesounds/250530-AdjustDeleteMessageBox
Update delete confirmation message
This commit is contained in:
commit
94a7dbc4bb
2 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue