From c1b776dfaed987d1d738ab90f8b5e62dd29ee71f Mon Sep 17 00:00:00 2001 From: DB P Date: Sun, 17 Sep 2023 13:35:27 +0900 Subject: [PATCH] Improve hotkey registration failure popup (#2343) * Add title text and more text in "hotkey register failed" popup * adjust string key * Formatting HotKeyMapper.cs --------- Co-authored-by: VictoriousRaptor <10308169+VictoriousRaptor@users.noreply.github.com> --- Flow.Launcher/Helper/HotKeyMapper.cs | 7 +++---- Flow.Launcher/Languages/en.xaml | 3 ++- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Flow.Launcher/Helper/HotKeyMapper.cs b/Flow.Launcher/Helper/HotKeyMapper.cs index 27c044c66bd..3949d282885 100644 --- a/Flow.Launcher/Helper/HotKeyMapper.cs +++ b/Flow.Launcher/Helper/HotKeyMapper.cs @@ -44,10 +44,9 @@ internal static void SetHotkey(HotkeyModel hotkey, EventHandler } catch (Exception) { - string errorMsg = - string.Format(InternationalizationManager.Instance.GetTranslation("registerHotkeyFailed"), - hotkeyStr); - MessageBox.Show(errorMsg); + string errorMsg = string.Format(InternationalizationManager.Instance.GetTranslation("registerHotkeyFailed"), hotkeyStr); + string errorMsgTitle = InternationalizationManager.Instance.GetTranslation("MessageBoxTitle"); + MessageBox.Show(errorMsg,errorMsgTitle); } } diff --git a/Flow.Launcher/Languages/en.xaml b/Flow.Launcher/Languages/en.xaml index bee595772c8..75fc68219c3 100644 --- a/Flow.Launcher/Languages/en.xaml +++ b/Flow.Launcher/Languages/en.xaml @@ -3,7 +3,8 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:system="clr-namespace:System;assembly=mscorlib"> - Failed to register hotkey: {0} + Failed to register hotkey "{0}". The hotkey may be in use by another program. Change to a different hotkey, or exit another program. + Flow Launcher Could not start {0} Invalid Flow Launcher plugin file format Set as topmost in this query