Move the quick terminal to active space if toggle() called while opening on another space

This commit is contained in:
Soh Satoh
2025-01-01 02:34:46 +09:00
committed by Mitchell Hashimoto
parent 1493c55348
commit 7bb3c31cee

View File

@ -164,6 +164,12 @@ class QuickTerminalController: BaseTerminalController {
// MARK: Methods // MARK: Methods
func toggle() { func toggle() {
if derivedConfig.quickTerminalSpaceBehavior == .remain && self.window?.isOnActiveSpace == false {
// If we're in the remain mode and the window is not on the active space, then we bring the window back to the active space.
self.window?.makeKeyAndOrderFront(nil)
return
}
if (visible) { if (visible) {
animateOut() animateOut()
} else { } else {