Skip to content

Commit 94a7dbc

Browse files
authored
Merge pull request #3596 from onesounds/250530-AdjustDeleteMessageBox
Update delete confirmation message
2 parents 6144d4a + 7c718ce commit 94a7dbc

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Flow.Launcher/MessageBoxEx.xaml.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ private async Task SetImageAsync(string imageName)
160160
private void KeyEsc_OnPress(object sender, ExecutedRoutedEventArgs e)
161161
{
162162
if (_button == MessageBoxButton.YesNo)
163+
// Follow System.Windows.MessageBox behavior
163164
return;
164165
else if (_button == MessageBoxButton.OK)
165166
_result = MessageBoxResult.OK;
@@ -188,6 +189,7 @@ private void Button_Click(object sender, RoutedEventArgs e)
188189
private void Button_Cancel(object sender, RoutedEventArgs e)
189190
{
190191
if (_button == MessageBoxButton.YesNo)
192+
// Follow System.Windows.MessageBox behavior
191193
return;
192194
else if (_button == MessageBoxButton.OK)
193195
_result = MessageBoxResult.OK;

Plugins/Flow.Launcher.Plugin.Explorer/ContextMenu.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ public List<Result> LoadContextMenus(Result selectedResult)
199199
{
200200
if (Context.API.ShowMsgBox(
201201
string.Format(Context.API.GetTranslation("plugin_explorer_delete_folder_link"), record.FullPath),
202-
string.Empty,
202+
Context.API.GetTranslation("plugin_explorer_deletefilefolder"),
203203
MessageBoxButton.YesNo,
204204
MessageBoxImage.Warning)
205205
== MessageBoxResult.No)

0 commit comments

Comments
 (0)