Skip to content

Commit

Permalink
Fix some broken icons in the CDB dialog on Windows
Browse files Browse the repository at this point in the history
core.formspec_escape was missing
  • Loading branch information
grorp authored Oct 31, 2024
1 parent 3ad6aee commit cbf1501
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions builtin/mainmenu/content/dlg_contentdb.lua
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ local function get_formspec(dlgdata)
if package.featured then
table.insert_all(formspec, {
"tooltip[0,0;0.8,0.8;", fgettext("Featured"), "]",
"image[0.2,0.2;0.4,0.4;", defaulttexturedir, "server_favorite.png]",
"image[0.2,0.2;0.4,0.4;", core.formspec_escape(defaulttexturedir .. "server_favorite.png"), "]",
})
end

Expand All @@ -367,20 +367,20 @@ local function get_formspec(dlgdata)

if package.downloading then
table.insert_all(formspec, {
"animated_image[0,0;0.5,0.5;downloading;", defaulttexturedir, "cdb_downloading.png;3;400;;]",
"animated_image[0,0;0.5,0.5;downloading;", core.formspec_escape(defaulttexturedir .. "cdb_downloading.png"), ";3;400;;]",
})
elseif package.queued then
table.insert_all(formspec, {
"image[0,0;0.5,0.5;", defaulttexturedir, "cdb_queued.png]",
"image[0,0;0.5,0.5;", core.formspec_escape(defaulttexturedir .. "cdb_queued.png"), "]",
})
elseif package.path then
if package.installed_release < package.release then
table.insert_all(formspec, {
"image[0,0;0.5,0.5;", defaulttexturedir, "cdb_update.png]",
"image[0,0;0.5,0.5;", core.formspec_escape(defaulttexturedir .. "cdb_update.png"), "]",
})
else
table.insert_all(formspec, {
"image[0.1,0.1;0.3,0.3;", defaulttexturedir, "checkbox_64.png]",
"image[0.1,0.1;0.3,0.3;", core.formspec_escape(defaulttexturedir .. "checkbox_64.png"), "]",
})
end
end
Expand Down

0 comments on commit cbf1501

Please sign in to comment.