Add tray controls for pause reload and diagnostics
This commit is contained in:
parent
77ae21d0f6
commit
e262b26db7
5 changed files with 192 additions and 8 deletions
|
|
@ -8,6 +8,9 @@ class DesktopAdapter(Protocol):
|
|||
def start_hotkey_listener(self, hotkey: str, callback: Callable[[], None]) -> None:
|
||||
raise NotImplementedError
|
||||
|
||||
def stop_hotkey_listener(self) -> None:
|
||||
raise NotImplementedError
|
||||
|
||||
def validate_hotkey(self, hotkey: str) -> None:
|
||||
raise NotImplementedError
|
||||
|
||||
|
|
@ -26,7 +29,17 @@ class DesktopAdapter(Protocol):
|
|||
) -> None:
|
||||
raise NotImplementedError
|
||||
|
||||
def run_tray(self, state_getter: Callable[[], str], on_quit: Callable[[], None]) -> None:
|
||||
def run_tray(
|
||||
self,
|
||||
state_getter: Callable[[], str],
|
||||
on_quit: Callable[[], None],
|
||||
*,
|
||||
is_paused_getter: Callable[[], bool] | None = None,
|
||||
on_toggle_pause: Callable[[], None] | None = None,
|
||||
on_reload_config: Callable[[], None] | None = None,
|
||||
on_run_diagnostics: Callable[[], None] | None = None,
|
||||
on_open_config: Callable[[], None] | None = None,
|
||||
) -> None:
|
||||
raise NotImplementedError
|
||||
|
||||
def request_quit(self) -> None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue