Only remove the initial window if no startup session is configured
This commit is contained in:
parent
7740bc138b
commit
648bff02b5
1 changed files with 1 additions and 1 deletions
|
|
@ -2256,7 +2256,7 @@ def launch_urls(self, *urls: str, no_replace_window: bool = False) -> None:
|
|||
else:
|
||||
w = None
|
||||
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:
|
||||
# first window, soon after startup replace it
|
||||
needs_window_replaced = True
|
||||
|
|
|
|||
Loading…
Reference in a new issue