mirror of https://code.videolan.org/videolan/vlc
macosx: Update float on top button state when pressed
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
This commit is contained in:
parent
4e7cffa647
commit
e9af45e10e
|
@ -116,7 +116,8 @@
|
|||
if (!p_vout) {
|
||||
return;
|
||||
}
|
||||
var_ToggleBool(p_vout, "video-on-top");
|
||||
const bool enabled = !var_ToggleBool(p_vout, "video-on-top");
|
||||
self.floatOnTopButton.state = enabled ? NSControlStateValueOn : NSControlStateValueOff;
|
||||
vout_Release(p_vout);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue