Fix mypy error: remove invalid 'none' check on window_title_bar option
This commit is contained in:
parent
49f6c926e0
commit
39820e79ff
1 changed files with 7 additions and 8 deletions
|
|
@ -1828,14 +1828,13 @@ def start_window_drag(self, window_id: int) -> None:
|
|||
set_window_being_dragged()
|
||||
return
|
||||
opts = get_options()
|
||||
if opts.window_title_bar != 'none':
|
||||
min_w = opts.window_title_bar_min_windows
|
||||
for tm in boss.all_tab_managers:
|
||||
for t in tm:
|
||||
visible = sum(1 for _ in t.windows.iter_all_layoutable_groups(only_visible=True))
|
||||
if not (min_w > 0 and visible >= min_w):
|
||||
t.force_show_title_bars = True
|
||||
t.relayout()
|
||||
min_w = opts.window_title_bar_min_windows
|
||||
for tm in boss.all_tab_managers:
|
||||
for t in tm:
|
||||
visible = sum(1 for _ in t.windows.iter_all_layoutable_groups(only_visible=True))
|
||||
if not (min_w > 0 and visible >= min_w):
|
||||
t.force_show_title_bars = True
|
||||
t.relayout()
|
||||
title = str(w.title or '')
|
||||
fg = color_as_int(opts.window_title_bar_active_foreground or opts.active_tab_foreground)
|
||||
bg = color_as_int(opts.window_title_bar_active_background or opts.active_tab_background)
|
||||
|
|
|
|||
Loading…
Reference in a new issue