Fix toggle window exception (#49)

This commit is contained in:
cxfksword authored and Felix committed 2018-06-21 22:27:12 +02:00
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}");
}
}