mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
macos: new window assertion is unnecessary
We handle both cases
This commit is contained in:
@ -32,10 +32,6 @@ class PrimaryWindowManager {
|
||||
let mainManagedWindow = managedWindows
|
||||
.first { $0.window.isMainWindow }
|
||||
|
||||
// In case we run into the inconsistency, let it crash in debug mode so we
|
||||
// can fix our window management setup to prevent this from happening.
|
||||
assert(mainManagedWindow != nil || !managedWindows.isEmpty)
|
||||
|
||||
return (mainManagedWindow ?? managedWindows.first)
|
||||
.map { $0.window }
|
||||
}
|
||||
|
Reference in New Issue
Block a user