Unified · Split
| @@ -1008,7 +1008,7 @@ local function add_layout(name) · 1007 unmodified lines | |||
| 1008 | 1008 | ||
| 1009 | return elements[name].layout | 1009 | return elements[name].layout |
| 1010 | else | 1010 | else |
| 1011 | msg.error("Can't add_layout to element \""..name.."\", doesn't exist.") | 1011 | msg.error("Can't add_layout to element '"..name.."', doesn't exist.") |
| 1012 | end | 1012 | end |
| 1013 | end | 1013 | end |
| 1014 | 1014 | ||
| @@ -2718,15 +2718,15 @@ mp.register_script_message("osc-idlescreen", idlescreen_visibility) · 1703 unmodified lines | |||
| 2718 | -- Validate string type user options | 2718 | -- Validate string type user options |
| 2719 | local function validate_user_opts() | 2719 | local function validate_user_opts() |
| 2720 | if layouts[user_opts.layout] == nil then | 2720 | if layouts[user_opts.layout] == nil then |
| 2721 | msg.warn("Invalid setting \""..user_opts.layout.."\" for layout") | 2721 | msg.warn("Invalid setting '"..user_opts.layout.."' for layout") |
| 2722 | user_opts.layout = "bottombar" | 2722 | user_opts.layout = "bottombar" |
| 2723 | end | 2723 | end |
| 2724 | 2724 | ||
| 2725 | if user_opts.seekbarstyle ~= "bar" and | 2725 | if user_opts.seekbarstyle ~= "bar" and |
| 2726 | user_opts.seekbarstyle ~= "diamond" and | 2726 | user_opts.seekbarstyle ~= "diamond" and |
| 2727 | user_opts.seekbarstyle ~= "knob" then | 2727 | user_opts.seekbarstyle ~= "knob" then |
| 2728 | msg.warn("Invalid setting \"" .. user_opts.seekbarstyle | 2728 | msg.warn("Invalid setting '" .. user_opts.seekbarstyle |
| 2729 | .. "\" for seekbarstyle") | 2729 | .. "' for seekbarstyle") |
| 2730 | user_opts.seekbarstyle = "bar" | 2730 | user_opts.seekbarstyle = "bar" |
| 2731 | end | 2731 | end |
| 2732 | 2732 | ||
| @@ -2735,29 +2735,29 @@ local function validate_user_opts() · 2 unmodified lines | |||
| 2735 | user_opts.seekrangestyle ~= "slider" and | 2735 | user_opts.seekrangestyle ~= "slider" and |
| 2736 | user_opts.seekrangestyle ~= "inverted" and | 2736 | user_opts.seekrangestyle ~= "inverted" and |
| 2737 | user_opts.seekrangestyle ~= "none" then | 2737 | user_opts.seekrangestyle ~= "none" then |
| 2738 | msg.warn("Invalid setting \"" .. user_opts.seekrangestyle | 2738 | msg.warn("Invalid setting '" .. user_opts.seekrangestyle |
| 2739 | .. "\" for seekrangestyle") | 2739 | .. "' for seekrangestyle") |
| 2740 | user_opts.seekrangestyle = "inverted" | 2740 | user_opts.seekrangestyle = "inverted" |
| 2741 | end | 2741 | end |
| 2742 | 2742 | ||
| 2743 | if user_opts.seekrangestyle == "slider" and | 2743 | if user_opts.seekrangestyle == "slider" and |
| 2744 | user_opts.seekbarstyle == "bar" then | 2744 | user_opts.seekbarstyle == "bar" then |
| 2745 | msg.warn( | 2745 | msg.warn( |
| 2746 | "Using \"slider\" seekrangestyle together with \"bar\" seekbarstyle is not supported") | 2746 | "Using 'slider' seekrangestyle together with 'bar' seekbarstyle is not supported") |
| 2747 | user_opts.seekrangestyle = "inverted" | 2747 | user_opts.seekrangestyle = "inverted" |
| 2748 | end | 2748 | end |
| 2749 | 2749 | ||
| 2750 | if user_opts.windowcontrols ~= "auto" and | 2750 | if user_opts.windowcontrols ~= "auto" and |
| 2751 | user_opts.windowcontrols ~= "yes" and | 2751 | user_opts.windowcontrols ~= "yes" and |
| 2752 | user_opts.windowcontrols ~= "no" then | 2752 | user_opts.windowcontrols ~= "no" then |
| 2753 | msg.warn("windowcontrols cannot be \"" .. | 2753 | msg.warn("windowcontrols cannot be '" .. |
| 2754 | user_opts.windowcontrols .. "\". Ignoring.") | 2754 | user_opts.windowcontrols .. "'. Ignoring.") |
| 2755 | user_opts.windowcontrols = "auto" | 2755 | user_opts.windowcontrols = "auto" |
| 2756 | end | 2756 | end |
| 2757 | if user_opts.windowcontrols_alignment ~= "right" and | 2757 | if user_opts.windowcontrols_alignment ~= "right" and |
| 2758 | user_opts.windowcontrols_alignment ~= "left" then | 2758 | user_opts.windowcontrols_alignment ~= "left" then |
| 2759 | msg.warn("windowcontrols_alignment cannot be \"" .. | 2759 | msg.warn("windowcontrols_alignment cannot be '" .. |
| 2760 | user_opts.windowcontrols_alignment .. "\". Ignoring.") | 2760 | user_opts.windowcontrols_alignment .. "'. Ignoring.") |
| 2761 | user_opts.windowcontrols_alignment = "right" | 2761 | user_opts.windowcontrols_alignment = "right" |
| 2762 | end | 2762 | end |
| 2763 | 2763 | ||