From bacb458df368ed3f295f431e9492b8e3bc503a43 Mon Sep 17 00:00:00 2001 From: Eugene Date: Mon, 11 Mar 2024 21:20:51 +0100 Subject: [PATCH] fixed #9164 - only auto-open a new tab if there are no tabs recovered after startup --- tabby-local/src/cli.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tabby-local/src/cli.ts b/tabby-local/src/cli.ts index 53573b2238..4464219294 100644 --- a/tabby-local/src/cli.ts +++ b/tabby-local/src/cli.ts @@ -132,7 +132,9 @@ export class AutoOpenTabCLIHandler extends CLIHandler { async handle (event: CLIEvent): Promise { if (!event.secondInstance && this.config.store.terminal.autoOpen && !this.config.store.enableWelcomeTab) { this.app.ready$.subscribe(() => { - this.terminal.openTab() + if (this.app.tabs.length === 0) { + this.terminal.openTab() + } }) return true }