History

osc.lua: replace escaped double quotes with single quotes

Sam committed 2 years ago

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

Unified · Split

player/lua/osc.lua+11−11
@@ -1008,7 +1008,7 @@ local function add_layout(name) · 1007 unmodified lines
10081008
10091009 return elements[name].layout
10101010 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.")
10121012 end
10131013 end
10141014
@@ -2718,15 +2718,15 @@ mp.register_script_message("osc-idlescreen", idlescreen_visibility) · 1703 unmodified lines
27182718 -- Validate string type user options
27192719 local function validate_user_opts()
27202720 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")
27222722 user_opts.layout = "bottombar"
27232723 end
27242724
27252725 if user_opts.seekbarstyle ~= "bar" and
27262726 user_opts.seekbarstyle ~= "diamond" and
27272727 user_opts.seekbarstyle ~= "knob" then
2728− msg.warn("Invalid setting \"" .. user_opts.seekbarstyle
2729− .. "\" for seekbarstyle")
2728+ msg.warn("Invalid setting '" .. user_opts.seekbarstyle
2729+ .. "' for seekbarstyle")
27302730 user_opts.seekbarstyle = "bar"
27312731 end
27322732
@@ -2735,29 +2735,29 @@ local function validate_user_opts() · 2 unmodified lines
27352735 user_opts.seekrangestyle ~= "slider" and
27362736 user_opts.seekrangestyle ~= "inverted" and
27372737 user_opts.seekrangestyle ~= "none" then
2738− msg.warn("Invalid setting \"" .. user_opts.seekrangestyle
2739− .. "\" for seekrangestyle")
2738+ msg.warn("Invalid setting '" .. user_opts.seekrangestyle
2739+ .. "' for seekrangestyle")
27402740 user_opts.seekrangestyle = "inverted"
27412741 end
27422742
27432743 if user_opts.seekrangestyle == "slider" and
27442744 user_opts.seekbarstyle == "bar" then
27452745 msg.warn(
2746− "Using \"slider\" seekrangestyle together with \"bar\" seekbarstyle is not supported")
2746+ "Using 'slider' seekrangestyle together with 'bar' seekbarstyle is not supported")
27472747 user_opts.seekrangestyle = "inverted"
27482748 end
27492749
27502750 if user_opts.windowcontrols ~= "auto" and
27512751 user_opts.windowcontrols ~= "yes" and
27522752 user_opts.windowcontrols ~= "no" then
2753− msg.warn("windowcontrols cannot be \"" ..
2754− user_opts.windowcontrols .. "\". Ignoring.")
2753+ msg.warn("windowcontrols cannot be '" ..
2754+ user_opts.windowcontrols .. "'. Ignoring.")
27552755 user_opts.windowcontrols = "auto"
27562756 end
27572757 if user_opts.windowcontrols_alignment ~= "right" and
27582758 user_opts.windowcontrols_alignment ~= "left" then
2759− msg.warn("windowcontrols_alignment cannot be \"" ..
2760− user_opts.windowcontrols_alignment .. "\". Ignoring.")
2759+ msg.warn("windowcontrols_alignment cannot be '" ..
2760+ user_opts.windowcontrols_alignment .. "'. Ignoring.")
27612761 user_opts.windowcontrols_alignment = "right"
27622762 end
27632763

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