From 18400b18518a567903b80e1a1a0667e4fd7513f8 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sun, 6 Jan 2019 13:16:27 +0000 Subject: [PATCH] Content store: Fix update button not working --- builtin/mainmenu/dlg_contentstore.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/builtin/mainmenu/dlg_contentstore.lua b/builtin/mainmenu/dlg_contentstore.lua index 414c268..a050113 100644 --- a/builtin/mainmenu/dlg_contentstore.lua +++ b/builtin/mainmenu/dlg_contentstore.lua @@ -229,6 +229,7 @@ function package_dialog.get_formspec() formspec[#formspec + 1] = fgettext("Install") formspec[#formspec + 1] = "]" elseif package.installed_release < package.release then + -- The install_ action also handles updating formspec[#formspec + 1] = "button[7,0;2,1;install;" formspec[#formspec + 1] = fgettext("Update") formspec[#formspec + 1] = "]" @@ -477,7 +478,8 @@ function store.get_formspec() formspec[#formspec + 1] = fgettext("Install") formspec[#formspec + 1] = "]" elseif package.installed_release < package.release then - formspec[#formspec + 1] = "button[8.4,0;1.5,1;update_" + -- The install_ action also handles updating + formspec[#formspec + 1] = "button[8.4,0;1.5,1;install_" formspec[#formspec + 1] = tostring(i) formspec[#formspec + 1] = ";" formspec[#formspec + 1] = fgettext("Update")