Fix launching a new tab when there is no OS window
This commit is contained in:
parent
a2269cb66e
commit
ddfda3efde
1 changed files with 2 additions and 0 deletions
|
|
@ -1826,6 +1826,8 @@ def new_tab_with_cwd(self, *args: str) -> None:
|
|||
self._create_tab(list(args), cwd_from=cwd_from)
|
||||
|
||||
def new_tab_with_wd(self, wd: str) -> None:
|
||||
if not self.os_window_map:
|
||||
self.add_os_window()
|
||||
special_window = SpecialWindow(None, cwd=wd)
|
||||
self._new_tab(special_window)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue