From a40d388053ddfce49f38d989739584453fc7951a Mon Sep 17 00:00:00 2001 From: xurdejl Date: Fri, 18 Oct 2024 13:44:28 +0200 Subject: [PATCH] fix: disabled elements don't follow the same style fixes #45 --- modernz.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/modernz.lua b/modernz.lua index 43a5107..1b7e266 100644 --- a/modernz.lua +++ b/modernz.lua @@ -1732,6 +1732,7 @@ local function osc_init() -- vol_ctrl ne = new_element("vol_ctrl", "button") ne.enabled = audio_track_count > 0 + ne.off = audio_track_count == 0 ne.visible = (osc_param.playresx >= 760 - outeroffset) and user_opts.volumecontrol ne.content = function () local volume = mp.get_property_number("volume", 0)