macosx: Update float on top button state when pressed

Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
This commit is contained in:
Claudio Cambra 2024-04-08 00:23:48 +08:00 committed by Steve Lhomme
parent 4e7cffa647
commit e9af45e10e
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}