From 9762afdd00153178dc0d4edd74e97bc2a401d7a9 Mon Sep 17 00:00:00 2001 From: Yusyuriv Date: Sun, 21 Apr 2024 19:48:35 +0600 Subject: [PATCH] Some cleanup in HotkeyControl2Dialog --- Flow.Launcher/HotkeyControl2Dialog.xaml | 9 +-------- Flow.Launcher/HotkeyControl2Dialog.xaml.cs | 13 +++++-------- 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/Flow.Launcher/HotkeyControl2Dialog.xaml b/Flow.Launcher/HotkeyControl2Dialog.xaml index c492d95ea..2eb62c419 100644 --- a/Flow.Launcher/HotkeyControl2Dialog.xaml +++ b/Flow.Launcher/HotkeyControl2Dialog.xaml @@ -26,7 +26,6 @@ @@ -40,14 +39,11 @@ Text="{Binding WindowTitle}" TextAlignment="Left" /> - - + InternationalizationManager.Instance.GetTranslation("hotkeyRegTitle"), + _ => windowTitle + }; CurrentHotkey = new HotkeyModel(hotkey); SetKeysToDisplay(CurrentHotkey); @@ -106,7 +103,7 @@ public partial class HotkeyControl2Dialog : ContentDialog if (tbMsg == null) return; - + if (!CheckHotkeyAvailability(hotkey.Value, true)) { tbMsg.Text = InternationalizationManager.Instance.GetTranslation("hotkeyUnavailable");