Fix toggle window exception (#49)
This commit is contained in:
1 parent
77d9a42c36
commit
def3aa3683
2 files changed
+15
-2
No files matched your search
@@ -25,6 +25,13 @@ namespace FluentTerminal.App.Services.Implementation
|
||||
handler.Invoke();
|
||||
return;
|
||||
}
|
||||
|
||||
// already registered by SystemTray's ToggleWindowService
|
||||
if (command == Command.ToggleWindow)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
throw new KeyNotFoundException($"No handler registered for command: {command}");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user