macOS: get latest TerminalEntity's kind, title & pwd

This fixes these being wrong after creating a terminal window for the first time.
This commit is contained in:
Lukas
2026-06-12 20:13:50 +02:00
parent 5659cef41f
commit e2832ae1fe
4 changed files with 89 additions and 6 deletions

View File

@@ -104,6 +104,14 @@ class AppDelegate: NSObject,
/// The current state of the quick terminal.
private var quickTerminalControllerState: QuickTerminalState = .uninitialized
/// Whether the quick terminal has already been initialized.
var quickControllerInitialized: Bool {
if case .initialized = quickTerminalControllerState {
return true
}
return false
}
/// Our quick terminal. This starts out uninitialized and only initializes if used.
var quickController: QuickTerminalController {
switch quickTerminalControllerState {