mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-08 05:20:01 +00:00
fixed #3862 - option to close the window when closing all tabs
This commit is contained in:
parent
7ed7ec3cb4
commit
0ea2adf6c8
@ -16,6 +16,7 @@ appearance:
|
|||||||
opacity: 1.0
|
opacity: 1.0
|
||||||
vibrancy: false
|
vibrancy: false
|
||||||
vibrancyType: 'blur'
|
vibrancyType: 'blur'
|
||||||
|
lastTabClosesWindow: false
|
||||||
terminal:
|
terminal:
|
||||||
showBuiltinProfiles: true
|
showBuiltinProfiles: true
|
||||||
showRecentProfiles: 3
|
showRecentProfiles: 3
|
||||||
|
@ -107,6 +107,12 @@ export class AppService {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
this.tabClosed$.subscribe(() => {
|
||||||
|
if (!this.tabs.length && this.config.store.appearance.lastTabClosesWindow) {
|
||||||
|
this.hostWindow.close()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
hostWindow.windowFocused$.subscribe(() => this._activeTab?.emitFocused())
|
hostWindow.windowFocused$.subscribe(() => this._activeTab?.emitFocused())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -313,6 +313,15 @@ h3.mt-4(translate) Tabs
|
|||||||
(ngModelChange)='config.save();',
|
(ngModelChange)='config.save();',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
.form-line
|
||||||
|
.header
|
||||||
|
.title(translate) Close the window after closing the last tab
|
||||||
|
|
||||||
|
toggle(
|
||||||
|
[(ngModel)]='config.store.appearance.lastTabClosesWindow',
|
||||||
|
(ngModelChange)='config.save();',
|
||||||
|
)
|
||||||
|
|
||||||
h3.mt-4(translate) Panes
|
h3.mt-4(translate) Panes
|
||||||
|
|
||||||
.form-line()
|
.form-line()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user