From 193b6fd8dd541d9628c49881a80f9ee02b50b99e Mon Sep 17 00:00:00 2001 From: Philip Langdale Date: Mon, 2 Dec 2019 11:01:22 +0800 Subject: osc: don't show error if windowcontrols=yes I always intended for this to be accepted and mean "right" but I made it show an error for any value that's not explicitly recognised (while considering all unrecognised values to mean "right"). So let's explicitly recognise "yes". --- player/lua/osc.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'player/lua') diff --git a/player/lua/osc.lua b/player/lua/osc.lua index 2c4a9d9558..8223bc77c1 100644 --- a/player/lua/osc.lua +++ b/player/lua/osc.lua @@ -985,7 +985,8 @@ function window_controls(alignment, topbar) if alignment == "left" then controlbox_left = wc_geo.x titlebox_left = wc_geo.x + controlbox_w + 5 - elseif alignment == "right" then + elseif alignment == "right" or + alignment == "yes" then -- Already default else msg.error("Invalid setting \""..alignment.."\" for windowcontrols") -- cgit v1.2.3