From 422b48620024ae813d9fe6066999dbc0cffd5625 Mon Sep 17 00:00:00 2001 From: der richter Date: Sun, 21 Apr 2019 12:29:42 +0200 Subject: 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. --- video/out/cocoa-cb/title_bar.swift | 2 ++ 1 file changed, 2 insertions(+) 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] -- cgit v1.2.3