Dont crash when user attempts to resize panel via remote control

Fixes #8550
This commit is contained in:
Kovid Goyal
2025-04-20 15:19:35 +05:30
parent ef2713a5bd
commit e2cf1e9185
3 changed files with 29 additions and 1 deletions

View File

@@ -211,7 +211,16 @@ def set_cocoa_global_shortcuts(opts: Options) -> dict[str, SingleKey]:
return global_shortcuts
_is_panel_kitten = False
def is_panel_kitten() -> bool:
return _is_panel_kitten
def _run_app(opts: Options, args: CLIOptions, bad_lines: Sequence[BadLine] = (), talk_fd: int = -1) -> None:
global _is_panel_kitten
_is_panel_kitten = run_app.cached_values_name == 'panel'
if is_macos:
global_shortcuts = set_cocoa_global_shortcuts(opts)
if opts.macos_custom_beam_cursor: