diff options
author | der richter <der.richter@gmx.de> | 2019-04-21 12:29:42 +0200 |
---|---|---|
committer | der richter <der.richter@gmx.de> | 2019-09-23 21:10:38 +0200 |
commit | 422b48620024ae813d9fe6066999dbc0cffd5625 (patch) | |
tree | f538dc246f676e0284f13f5a1c105769bddf623b /video | |
parent | c1cdecd147c021582e5ffea67b8bd1744160dc76 (diff) | |
download | mpv-422b48620024ae813d9fe6066999dbc0cffd5625.tar.bz2 mpv-422b48620024ae813d9fe6066999dbc0cffd5625.tar.xz |
cocoa-cb: fix title bar button state on start up
on start up it was possible to click the hidden buttons. hide the
buttons ons tart up to make the state consistent with the visible state.
Diffstat (limited to 'video')
-rw-r--r-- | video/out/cocoa-cb/title_bar.swift | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/cocoa-cb/title_bar.swift b/video/out/cocoa-cb/title_bar.swift index f961b1908a..41d04a19ad 100644 --- a/video/out/cocoa-cb/title_bar.swift +++ b/video/out/cocoa-cb/title_bar.swift @@ -55,6 +55,8 @@ class TitleBar: NSVisualEffectView { frame.size.width, TitleBar.height) cocoaCB = ccb super.init(frame: f) + buttons.forEach { $0.isHidden = true } + isHidden = true alphaValue = 0 blendingMode = .withinWindow autoresizingMask = [.width, .minYMargin] |