Fix notification focus/read handling and add split surface control

This commit is contained in:
Lawrence Chen 2026-01-22 18:58:04 -08:00
parent bc074d20c1
commit 5acb4e47b1
6 changed files with 384 additions and 17 deletions

View file

@ -64,14 +64,6 @@ struct ContentView: View {
}
.onChange(of: tabManager.selectedTabId) { newValue in
focusedTabId = newValue
if let newValue {
notificationStore.markRead(forTabId: newValue)
}
}
.onReceive(NotificationCenter.default.publisher(for: NSApplication.didBecomeActiveNotification)) { _ in
if let selected = tabManager.selectedTabId {
notificationStore.markRead(forTabId: selected)
}
}
.onReceive(NotificationCenter.default.publisher(for: .ghosttyDidFocusTab)) { _ in
sidebarSelection = .tabs