mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-21 12:42:25 +00:00
is_tab_bar_visible should return false when os window has no tabs
This commit is contained in:
parent
edd466e5f7
commit
f9e3de66d5
1 changed files with 1 additions and 1 deletions
|
|
@ -964,7 +964,7 @@ PYWRAP1(is_tab_bar_visible) {
|
|||
PA("K", &os_window_id);
|
||||
if (!OPT(tab_bar_hidden)) {
|
||||
WITH_OS_WINDOW(os_window_id)
|
||||
return os_window->has_too_few_tabs ? Py_NewRef(Py_False) : Py_NewRef(Py_True);
|
||||
return (os_window->num_tabs == 0 || os_window->has_too_few_tabs) ? Py_NewRef(Py_False) : Py_NewRef(Py_True);
|
||||
END_WITH_OS_WINDOW
|
||||
}
|
||||
Py_RETURN_FALSE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue