Skip to content

Commit 3c7e920

Browse files
committedFeb 3, 2019
Content store: Fix overlapping labels
1 parent cf8b0ed commit 3c7e920

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed
 

‎builtin/mainmenu/dlg_contentstore.lua

+7-7
Original file line numberDiff line numberDiff line change
@@ -430,24 +430,24 @@ function store.get_formspec()
430430
"button[11.1,0;1,1;pend;>>]",
431431
"container_end[]",
432432
}
433+
434+
if #store.packages == 0 then
435+
formspec[#formspec + 1] = "label[4,3;"
436+
formspec[#formspec + 1] = fgettext("No results")
437+
formspec[#formspec + 1] = "]"
438+
end
433439
else
434440
formspec = {
435441
"size[12,7;true]",
436442
"position[0.5,0.55]",
437-
"label[4,3;No packages could be retrieved]",
443+
"label[4,3;", fgettext("No packages could be retrieved"), "]",
438444
"button[-0.1,",
439445
num_per_page + 1.5,
440446
";3,1;back;",
441447
fgettext("Back to Main Menu"), "]",
442448
}
443449
end
444450

445-
if #store.packages == 0 then
446-
formspec[#formspec + 1] = "label[4,3;"
447-
formspec[#formspec + 1] = fgettext("No results")
448-
formspec[#formspec + 1] = "]"
449-
end
450-
451451
local start_idx = (cur_page - 1) * num_per_page + 1
452452
for i=start_idx, math.min(#store.packages, start_idx+num_per_page-1) do
453453
local package = store.packages[i]

0 commit comments

Comments
 (0)