fix: allow compact mode while media is loading

This commit is contained in:
2026-10-12 12:00:56 +02:00
parent f495c8b719
commit 1e75f554f0
6 changed files with 93 additions and 25 deletions
+3 -2
View File
@@ -102,12 +102,13 @@ final class CompactWindowController: NSObject {
restore()
return
}
guard let window, aspect.isFinite, aspect > 0 else { return }
guard let window else { return }
if !sessionActive {
sessionActive = true
originatedFullScreen = window.styleMask.contains(.fullScreen) || fullScreenTransition != nil
}
videoAspect = aspect
// Keep the last usable ratio until loading supplies the video's metadata.
if aspect.isFinite && aspect > 0 { videoAspect = aspect }
wantsCompact = true
wantsFullScreen = false
reconcile()