From f2399da50d3cdfc21208cfbe0645dec08da6dcbf Mon Sep 17 00:00:00 2001 From: DB p Date: Sun, 21 Apr 2024 16:41:14 +0900 Subject: [PATCH] Add Window Title for empty property --- Flow.Launcher/HotkeyControl2Dialog.xaml.cs | 9 ++++++++- Flow.Launcher/Languages/en.xaml | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Flow.Launcher/HotkeyControl2Dialog.xaml.cs b/Flow.Launcher/HotkeyControl2Dialog.xaml.cs index 404e98031..fc66c805e 100644 --- a/Flow.Launcher/HotkeyControl2Dialog.xaml.cs +++ b/Flow.Launcher/HotkeyControl2Dialog.xaml.cs @@ -30,7 +30,14 @@ public partial class HotkeyControl2Dialog : ContentDialog public HotkeyControl2Dialog(string hotkey, string windowTitle = "") { - WindowTitle = windowTitle; + if (windowTitle == string.Empty) + { + WindowTitle = InternationalizationManager.Instance.GetTranslation("hotkeyRegTitle"); + } + else + { + WindowTitle = windowTitle; + } CurrentHotkey = new HotkeyModel(hotkey); SetKeysToDisplay(CurrentHotkey); diff --git a/Flow.Launcher/Languages/en.xaml b/Flow.Launcher/Languages/en.xaml index 38f740f55..c92f227b3 100644 --- a/Flow.Launcher/Languages/en.xaml +++ b/Flow.Launcher/Languages/en.xaml @@ -309,6 +309,7 @@ Hotkey is unavailable, please select a new hotkey Invalid plugin hotkey Update + Binding Hotkey It's unavailable hotkey. Press the keys you want to use for this function.