From 12843dcea10f2b474aa7ffdee007999caad77762 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 22 Dec 2019 12:32:50 +0100 Subject: [PATCH] osc: full reinit on runtime option changes Fuck it, just let's just reinit everything. On a side note, the changelist parameter provided by read_options() (here "list") is now unused. But it's not hard to provide and might be useful for other stuff. So don't remove it from the generic read_options() code. --- player/lua/osc.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/player/lua/osc.lua b/player/lua/osc.lua index cbec832aab..8c2d93b635 100644 --- a/player/lua/osc.lua +++ b/player/lua/osc.lua @@ -1642,9 +1642,8 @@ end function update_options(list) validate_user_opts() request_tick() - if list["visibility"] then - visibility_mode(user_opts.visibility, true) - end + visibility_mode(user_opts.visibility, true) + request_init() end -- OSC INIT