summaryrefslogtreecommitdiff
path: root/builtin/mainmenu
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2019-01-06 13:16:27 +0000
committerrubenwardy <rw@rubenwardy.com>2019-01-06 13:18:40 +0000
commitf5de187b6c76a4c7b30d565d73cfe51e159961c0 (patch)
tree4ab291f3b75a7d7348045d310ea36d1ba8deae5d /builtin/mainmenu
parenta122ba0ef4af865d225adbe22a55b8001af04c61 (diff)
downloadminetest-f5de187b6c76a4c7b30d565d73cfe51e159961c0.tar.gz
minetest-f5de187b6c76a4c7b30d565d73cfe51e159961c0.tar.bz2
minetest-f5de187b6c76a4c7b30d565d73cfe51e159961c0.zip
Content store: Fix update button not working
Diffstat (limited to 'builtin/mainmenu')
-rw-r--r--builtin/mainmenu/dlg_contentstore.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/builtin/mainmenu/dlg_contentstore.lua b/builtin/mainmenu/dlg_contentstore.lua
index 414c26853..a050113e4 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")