Fix notification focus/read handling and add split surface control
This commit is contained in:
parent
bc074d20c1
commit
5acb4e47b1
6 changed files with 384 additions and 17 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue