Skip to content

Commit

Permalink
Merge pull request #65 from computator1200/main
Browse files Browse the repository at this point in the history
Updated to use user-data property
  • Loading branch information
cyl0 authored Apr 8, 2024
2 parents d053ea6 + 4f9e744 commit 726e71f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modernx.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2513,8 +2513,8 @@ function visibility_mode(mode, no_osd)
return
end

user_opts.visibility = mode
utils.shared_script_property_set("osc-visibility", mode)
user_opts.visibility = mode
mp.set_property_native("user-data/osc/visibility", user_opts.visibility)

if not no_osd and tonumber(mp.get_property('osd-level')) >= 1 then
mp.osd_message('OSC visibility: ' .. mode)
Expand Down

0 comments on commit 726e71f

Please sign in to comment.