Skip to content

Commit f5de187

Browse files
committedJan 6, 2019
Content store: Fix update button not working
1 parent a122ba0 commit f5de187

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

Diff for: ‎builtin/mainmenu/dlg_contentstore.lua

+3-1
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ function package_dialog.get_formspec()
229229
formspec[#formspec + 1] = fgettext("Install")
230230
formspec[#formspec + 1] = "]"
231231
elseif package.installed_release < package.release then
232+
-- The install_ action also handles updating
232233
formspec[#formspec + 1] = "button[7,0;2,1;install;"
233234
formspec[#formspec + 1] = fgettext("Update")
234235
formspec[#formspec + 1] = "]"
@@ -477,7 +478,8 @@ function store.get_formspec()
477478
formspec[#formspec + 1] = fgettext("Install")
478479
formspec[#formspec + 1] = "]"
479480
elseif package.installed_release < package.release then
480-
formspec[#formspec + 1] = "button[8.4,0;1.5,1;update_"
481+
-- The install_ action also handles updating
482+
formspec[#formspec + 1] = "button[8.4,0;1.5,1;install_"
481483
formspec[#formspec + 1] = tostring(i)
482484
formspec[#formspec + 1] = ";"
483485
formspec[#formspec + 1] = fgettext("Update")

0 commit comments

Comments
 (0)
Please sign in to comment.