mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-02-13 02:41:37 +00:00
Ignore NONE case
This commit is contained in:
parent
b20273fe49
commit
52a0af7b64
@ -67,6 +67,9 @@ public sealed class GlobalShortcutService : BackgroundService, IMessageBusReceiv
|
|||||||
this.logger.LogInformation("Registering global shortcuts.");
|
this.logger.LogInformation("Registering global shortcuts.");
|
||||||
foreach (var shortcutId in Enum.GetValues<Shortcut>())
|
foreach (var shortcutId in Enum.GetValues<Shortcut>())
|
||||||
{
|
{
|
||||||
|
if(shortcutId is Shortcut.NONE)
|
||||||
|
continue;
|
||||||
|
|
||||||
var shortcut = this.GetShortcutValue(shortcutId);
|
var shortcut = this.GetShortcutValue(shortcutId);
|
||||||
var isEnabled = this.IsShortcutAllowed(shortcutId);
|
var isEnabled = this.IsShortcutAllowed(shortcutId);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user