diff --git a/src/MaaWpfGui/Services/HotKeys/MaaHotKeyManager.cs b/src/MaaWpfGui/Services/HotKeys/MaaHotKeyManager.cs index 84ae3cc587..791487995a 100644 --- a/src/MaaWpfGui/Services/HotKeys/MaaHotKeyManager.cs +++ b/src/MaaWpfGui/Services/HotKeys/MaaHotKeyManager.cs @@ -115,7 +115,7 @@ namespace MaaWpfGui.Services.HotKeys private static Dictionary GetPersistentHotKeys() { - var hotKeysString = ConfigurationHelper.GetValue(HotKeyConfigName, null); + var hotKeysString = ConfigurationHelper.GetGlobalValue(HotKeyConfigName, null); return hotKeysString is null ? CreateInitialHotKeys() @@ -139,7 +139,7 @@ namespace MaaWpfGui.Services.HotKeys private void PersistHotKeys() { - ConfigurationHelper.SetValue(HotKeyConfigName, JsonConvert.SerializeObject(_actionHotKeyMapping)); + ConfigurationHelper.SetGlobalValue(HotKeyConfigName, JsonConvert.SerializeObject(_actionHotKeyMapping)); } } } diff --git a/src/MaaWpfGui/Views/UserControl/HotKeySettingsUserControl.xaml b/src/MaaWpfGui/Views/UserControl/HotKeySettingsUserControl.xaml index 81038a3099..131a52fcfd 100644 --- a/src/MaaWpfGui/Views/UserControl/HotKeySettingsUserControl.xaml +++ b/src/MaaWpfGui/Views/UserControl/HotKeySettingsUserControl.xaml @@ -21,6 +21,12 @@ Margin="10" HorizontalAlignment="Center" VerticalAlignment="Center"> +