mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-28 15:44:32 +00:00
Fix terminal keyboard open + sticky outside-click
This commit is contained in:
parent
a4d34b7f0f
commit
0f034b8528
2 changed files with 19 additions and 6 deletions
|
|
@ -1041,12 +1041,16 @@ class AppDelegate: NSObject, NSApplicationDelegate {
|
|||
guard Defaults[.enableShortcuts], Defaults[.enableTerminalFeature] else { return }
|
||||
|
||||
if vm.notchState == .closed {
|
||||
closeNotchWorkItem?.cancel()
|
||||
closeNotchWorkItem = nil
|
||||
vm.open()
|
||||
coordinator.currentView = .terminal
|
||||
} else {
|
||||
if coordinator.currentView == .terminal {
|
||||
vm.close()
|
||||
} else {
|
||||
closeNotchWorkItem?.cancel()
|
||||
closeNotchWorkItem = nil
|
||||
coordinator.currentView = .terminal
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue