mirror of
https://github.com/Eugeny/tabby.git
synced 2025-10-04 22:14:55 +00:00
fixed #3862 - option to close the window when closing all tabs
This commit is contained in:
@@ -16,6 +16,7 @@ appearance:
|
||||
opacity: 1.0
|
||||
vibrancy: false
|
||||
vibrancyType: 'blur'
|
||||
lastTabClosesWindow: false
|
||||
terminal:
|
||||
showBuiltinProfiles: true
|
||||
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())
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user