summaryrefslogtreecommitdiff
path: root/main.lua
diff options
context:
space:
mode:
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.lua b/main.lua
index 19875f0..3bfb79e 100644
--- a/main.lua
+++ b/main.lua
@@ -1276,7 +1276,7 @@ local function toggle_menu()
end
mp.observe_property('user-data/osc/visibility', 'native', function(_, val)
- if osd:is_hidden() or val ~= 'never' then
+ if val and (osd:is_hidden() or val ~= 'never') then
osc_visibility = val
end
end)