Refactor toggleMaximize to use notifications

This commit is contained in:
Aaron Ruan
2025-04-27 08:48:06 +08:00
parent 334093a9ea
commit 1ec3e331de
4 changed files with 30 additions and 8 deletions

View File

@@ -807,12 +807,6 @@ class AppDelegate: NSObject,
setSecureInput(.toggle)
}
@IBAction func toggleMaximize(_ sender: Any) {
if NSApp.isActive, let keyWindow = NSApp.keyWindow {
keyWindow.zoom(self)
}
}
@IBAction func toggleQuickTerminal(_ sender: Any) {
if quickController == nil {
quickController = QuickTerminalController(