fix user options not being read before style configuration

This commit is contained in:
sudacode 2023-08-06 00:56:38 -07:00
parent 29fc46fd41
commit 4ad1974e64

View File

@ -50,6 +50,8 @@ local options = {
display_limit = 6 display_limit = 6
} }
mp.options.read_options(options, "mpv-youtube-queue")
local colors = { local colors = {
error = "676EFF", error = "676EFF",
selected = "F993BD", selected = "F993BD",
@ -79,8 +81,6 @@ local style = {
transparent .. "}" transparent .. "}"
} }
mp.options.read_options(options, "mpv-youtube-queue")
local display_limit = options.display_limit local display_limit = options.display_limit
local display_offset = 0 local display_offset = 0