mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-15 17:30:27 +08:00
chore: 热键改为全局配置
This commit is contained in:
@@ -115,7 +115,7 @@ namespace MaaWpfGui.Services.HotKeys
|
||||
|
||||
private static Dictionary<MaaHotKeyAction, MaaHotKey> 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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,6 +21,12 @@
|
||||
Margin="10"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center">
|
||||
<controls:TextBlock
|
||||
Grid.Row="0"
|
||||
HorizontalAlignment="Center"
|
||||
FontWeight="Bold"
|
||||
Text="{DynamicResource GlobalConfigTip}"
|
||||
TextAlignment="Center" />
|
||||
<StackPanel
|
||||
HorizontalAlignment="Right"
|
||||
VerticalAlignment="Center"
|
||||
|
||||
Reference in New Issue
Block a user