mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-07-13 12:40:51 +00:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user