mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-28 03:01:57 +02:00
Only remove the initial window if no startup session is configured
This commit is contained in:
@@ -2256,7 +2256,7 @@ class Boss:
|
|||||||
else:
|
else:
|
||||||
w = None
|
w = None
|
||||||
needs_window_replaced = False
|
needs_window_replaced = False
|
||||||
if not no_replace_window:
|
if not no_replace_window and not get_options().startup_session:
|
||||||
if w is not None and w.id == 1 and monotonic() - w.started_at < 2 and len(tuple(self.all_windows)) == 1:
|
if w is not None and w.id == 1 and monotonic() - w.started_at < 2 and len(tuple(self.all_windows)) == 1:
|
||||||
# first window, soon after startup replace it
|
# first window, soon after startup replace it
|
||||||
needs_window_replaced = True
|
needs_window_replaced = True
|
||||||
|
|||||||
Reference in New Issue
Block a user