mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 03:48:56 +00:00
Core - Renamed ProfileConfigurationHotkey to Hotkey
Avalonia - Added HotkeyBox
This commit is contained in:
1 parent
b801de1f30
commit
ebed9f5560
11 files changed
+269
-48
No files matched your search
+3
-3
@@ -22,7 +22,7 @@ namespace Artemis.UI.Screens.Sidebar.Dialogs.ProfileEdit
|
||||
UpdateHotkeyDisplay();
|
||||
}
|
||||
|
||||
public ProfileConfigurationHotkey Hotkey => _isDisableHotkey ? _profileConfiguration.DisableHotkey : _profileConfiguration.EnableHotkey;
|
||||
public Hotkey Hotkey => _isDisableHotkey ? _profileConfiguration.DisableHotkey : _profileConfiguration.EnableHotkey;
|
||||
|
||||
public string Hint
|
||||
{
|
||||
@@ -66,13 +66,13 @@ namespace Artemis.UI.Screens.Sidebar.Dialogs.ProfileEdit
|
||||
|
||||
if (_isDisableHotkey)
|
||||
{
|
||||
_profileConfiguration.DisableHotkey ??= new ProfileConfigurationHotkey();
|
||||
_profileConfiguration.DisableHotkey ??= new Hotkey();
|
||||
_profileConfiguration.DisableHotkey.Key = (KeyboardKey?) e.Key;
|
||||
_profileConfiguration.DisableHotkey.Modifiers = (KeyboardModifierKey?) Keyboard.Modifiers;
|
||||
}
|
||||
else
|
||||
{
|
||||
_profileConfiguration.EnableHotkey ??= new ProfileConfigurationHotkey();
|
||||
_profileConfiguration.EnableHotkey ??= new Hotkey();
|
||||
_profileConfiguration.EnableHotkey.Key = (KeyboardKey?) e.Key;
|
||||
_profileConfiguration.EnableHotkey.Modifiers = (KeyboardModifierKey?) Keyboard.Modifiers;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user