forked from antonpup/Aurora
-
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2863e75
commit b06e669
Showing
3 changed files
with
210 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 13 additions & 15 deletions
28
Project-Aurora/Project-Aurora/Settings/Layers/Controls/Control_TimerLayer.xaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,18 @@ | ||
using System.Windows.Controls; | ||
using AuroraRgb.Controls; | ||
using AuroraRgb.Controls; | ||
|
||
namespace AuroraRgb.Settings.Layers.Controls { | ||
namespace AuroraRgb.Settings.Layers.Controls; | ||
|
||
public partial class Control_TimerLayer : UserControl { | ||
public partial class Control_TimerLayer | ||
{ | ||
public Control_TimerLayer(TimerLayerHandler context) { | ||
InitializeComponent(); | ||
DataContext = context; | ||
|
||
public Control_TimerLayer(TimerLayerHandler context) { | ||
InitializeComponent(); | ||
DataContext = context; | ||
|
||
triggerKeyList.Keybinds = context.Properties._TriggerKeys; | ||
} | ||
triggerKeyList.Keybinds = context.Properties.TriggerKeys; | ||
} | ||
|
||
private void triggerKeyList_KeybindsChanged(object? sender) { | ||
if (sender is KeyBindList kbl) | ||
(DataContext as TimerLayerHandler).Properties._TriggerKeys = kbl.Keybinds; | ||
} | ||
private void triggerKeyList_KeybindsChanged(object? sender) { | ||
if (sender is KeyBindList kbl && DataContext is TimerLayerHandler timerLayerHandler) | ||
timerLayerHandler.Properties.TriggerKeys = kbl.Keybinds; | ||
} | ||
} | ||
} |
Oops, something went wrong.