From 1532dd5b384b4cd60be7c5fb1b9ab40afe7bb8e1 Mon Sep 17 00:00:00 2001 From: Noraa Junker Date: Mon, 1 Dec 2025 23:27:13 +0100 Subject: [PATCH] Move AlwaysOnTop to keyboard hook (like old moduleinterface) --- .../ModuleInterfaces/AlwaysOnTopModuleInterface.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/RunnerV2/RunnerV2/ModuleInterfaces/AlwaysOnTopModuleInterface.cs b/src/RunnerV2/RunnerV2/ModuleInterfaces/AlwaysOnTopModuleInterface.cs index 059e3d7904..e7be68833d 100644 --- a/src/RunnerV2/RunnerV2/ModuleInterfaces/AlwaysOnTopModuleInterface.cs +++ b/src/RunnerV2/RunnerV2/ModuleInterfaces/AlwaysOnTopModuleInterface.cs @@ -62,14 +62,14 @@ namespace RunnerV2.ModuleInterfaces private void InitializeHotkey() { - Hotkeys.Clear(); - Hotkeys.Add(((HotkeyEx)new SettingsUtils().GetSettings(Name).Properties.Hotkey.Value) with { Identifier = _pinHotkeyAtom }, () => + Shortcuts.Clear(); + Shortcuts.Add((new SettingsUtils().GetSettings(Name).Properties.Hotkey.Value, () => { if (!_process?.HasExited ?? false) { _pinEventWrapper?.Fire(); } - }); + })); } public void OnSettingsChanged(string settingsKind, JsonElement jsonProperties) @@ -77,7 +77,7 @@ namespace RunnerV2.ModuleInterfaces InitializeHotkey(); } - public Dictionary Hotkeys { get; } = []; + public List<(HotkeySettings Hotkey, Action Action)> Shortcuts { get; } = []; public void Dispose() {