Animate out the quick terminal if closed all tabs

This commit is contained in:
Soh Satoh
2025-01-26 19:16:57 +09:00
parent 98a0e07cce
commit ae8ddb234f

View File

@ -41,6 +41,7 @@ class QuickTerminalTabManager: ObservableObject {
if currentTab?.id == tab.id {
if tabs.isEmpty {
newTab()
controller?.animateOut()
} else {
let newIndex = min(index, tabs.count - 1)
selectTab(tabs[newIndex])