Add Window Title for empty property

This commit is contained in:
DB p 2024-04-21 16:41:14 +09:00
parent 9e24c59fa8
commit f2399da50d
2 changed files with 9 additions and 1 deletions

View file

@ -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);

View file

@ -309,6 +309,7 @@
<system:String x:Key="hotkeyIsNotUnavailable">Hotkey is unavailable, please select a new hotkey</system:String>
<system:String x:Key="invalidPluginHotkey">Invalid plugin hotkey</system:String>
<system:String x:Key="update">Update</system:String>
<system:String x:Key="hotkeyRegTitle">Binding Hotkey</system:String>
<system:String x:Key="hotkeyUnavailable">It's unavailable hotkey.</system:String>
<system:String x:Key="hotkeyRegGuide">Press the keys you want to use for this function.</system:String>