History

osc.lua: replace escaped double quotes with single quotes

Sam committed 2 years ago

Commit 21735651 parent 0dc2e851 file · +11 −11Browse files

Showing the changes to player/lua/osc.lua (1 of 1 file). Show all

Unified · Split

player/lua/osc.lua+11−11
@@ -1008,7 +1008,7 @@ local function add_layout(name) · 1007 unmodified lines
1008 1008
1009 return elements[name].layout1009 return elements[name].layout
1010 else1010 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 end1012 end
1013end1013end
1014 1014
@@ -2718,15 +2718,15 @@ mp.register_script_message("osc-idlescreen", idlescreen_visibility) · 1703 unmodified lines
2718-- Validate string type user options2718-- Validate string type user options
2719local function validate_user_opts()2719local function validate_user_opts()
2720 if layouts[user_opts.layout] == nil then2720 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 end2723 end
2724 2724
2725 if user_opts.seekbarstyle ~= "bar" and2725 if user_opts.seekbarstyle ~= "bar" and
2726 user_opts.seekbarstyle ~= "diamond" and2726 user_opts.seekbarstyle ~= "diamond" and
2727 user_opts.seekbarstyle ~= "knob" then2727 user_opts.seekbarstyle ~= "knob" then
2728 msg.warn("Invalid setting \"" .. user_opts.seekbarstyle2728 msg.warn("Invalid setting '" .. user_opts.seekbarstyle
2729 .. "\" for seekbarstyle")2729 .. "' for seekbarstyle")
2730 user_opts.seekbarstyle = "bar"2730 user_opts.seekbarstyle = "bar"
2731 end2731 end
2732 2732
@@ -2735,29 +2735,29 @@ local function validate_user_opts() · 2 unmodified lines
2735 user_opts.seekrangestyle ~= "slider" and2735 user_opts.seekrangestyle ~= "slider" and
2736 user_opts.seekrangestyle ~= "inverted" and2736 user_opts.seekrangestyle ~= "inverted" and
2737 user_opts.seekrangestyle ~= "none" then2737 user_opts.seekrangestyle ~= "none" then
2738 msg.warn("Invalid setting \"" .. user_opts.seekrangestyle2738 msg.warn("Invalid setting '" .. user_opts.seekrangestyle
2739 .. "\" for seekrangestyle")2739 .. "' for seekrangestyle")
2740 user_opts.seekrangestyle = "inverted"2740 user_opts.seekrangestyle = "inverted"
2741 end2741 end
2742 2742
2743 if user_opts.seekrangestyle == "slider" and2743 if user_opts.seekrangestyle == "slider" and
2744 user_opts.seekbarstyle == "bar" then2744 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 end2748 end
2749 2749
2750 if user_opts.windowcontrols ~= "auto" and2750 if user_opts.windowcontrols ~= "auto" and
2751 user_opts.windowcontrols ~= "yes" and2751 user_opts.windowcontrols ~= "yes" and
2752 user_opts.windowcontrols ~= "no" then2752 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 end2756 end
2757 if user_opts.windowcontrols_alignment ~= "right" and2757 if user_opts.windowcontrols_alignment ~= "right" and
2758 user_opts.windowcontrols_alignment ~= "left" then2758 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 end2762 end
2763 2763

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t