Ignore NONE case

This commit is contained in:
Thorsten Sommer 2026-01-23 16:16:58 +01:00
parent b20273fe49
commit 52a0af7b64
Signed by untrusted user who does not match committer: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -67,6 +67,9 @@ public sealed class GlobalShortcutService : BackgroundService, IMessageBusReceiv
this.logger.LogInformation("Registering global shortcuts.");
foreach (var shortcutId in Enum.GetValues<Shortcut>())
{
if(shortcutId is Shortcut.NONE)
continue;
var shortcut = this.GetShortcutValue(shortcutId);
var isEnabled = this.IsShortcutAllowed(shortcutId);