diff options
author | der richter <der.richter@gmx.de> | 2024-03-19 23:15:42 +0100 |
---|---|---|
committer | der richter <der.richter@gmx.de> | 2024-03-21 18:33:15 +0100 |
commit | 204e3f0df63d9e9ad93d8ece0b6dcfa4c5246fa7 (patch) | |
tree | 778a00a6393eca40db895bc20e4275bade21beb4 /video/out/cocoa_cb_common.swift | |
parent | f72dfd48d0d663f7bdcfba8cd3df691c76797907 (diff) | |
download | mpv-204e3f0df63d9e9ad93d8ece0b6dcfa4c5246fa7.tar.bz2 mpv-204e3f0df63d9e9ad93d8ece0b6dcfa4c5246fa7.tar.xz |
mac/option: rename option structs to properly represent their content
also optimise option cache setup.
Diffstat (limited to 'video/out/cocoa_cb_common.swift')
-rw-r--r-- | video/out/cocoa_cb_common.swift | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/video/out/cocoa_cb_common.swift b/video/out/cocoa_cb_common.swift index 10485778f0..175053d7f0 100644 --- a/video/out/cocoa_cb_common.swift +++ b/video/out/cocoa_cb_common.swift @@ -65,11 +65,11 @@ class CocoaCB: Common { self.vo = vo if backendState == .needsInit { DispatchQueue.main.sync { self.initBackend(vo) } - } else if option.opts.auto_window_resize { + } else if option.vo.auto_window_resize { DispatchQueue.main.async { self.updateWindowSize(vo) self.layer?.update(force: true) - if self.option.opts.focus_on == 2 { + if self.option.vo.focus_on == 2 { NSApp.activate(ignoringOtherApps: true) } } @@ -204,7 +204,7 @@ class CocoaCB: Common { func shutdown(_ destroy: Bool = false) { isShuttingDown = window?.isAnimating ?? false || - window?.isInFullscreen ?? false && option.opts.native_fs + window?.isInFullscreen ?? false && option.vo.native_fs if window?.isInFullscreen ?? false && !(window?.isAnimating ?? false) { window?.close() } |