fix: allow compact mode while media is loading
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user