aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2019-01-09 13:14:24 +0000
committerrubenwardy <rw@rubenwardy.com>2019-01-09 13:14:33 +0000
commit4b04268304a2f798cea110415f360c165395b4fb (patch)
tree84118b0dff53fcaed0d784a72f6e79dc606fdc4e /builtin
parent630c0ea997267447d983fb5c1129c8a2c67c24e4 (diff)
downloadminetest-4b04268304a2f798cea110415f360c165395b4fb.tar.gz
minetest-4b04268304a2f798cea110415f360c165395b4fb.tar.bz2
minetest-4b04268304a2f798cea110415f360c165395b4fb.zip
pkgmgr: Fix games list not being updated after game install
Fixes #8074
Diffstat (limited to 'builtin')
-rw-r--r--builtin/mainmenu/pkgmgr.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/builtin/mainmenu/pkgmgr.lua b/builtin/mainmenu/pkgmgr.lua
index f6015ef72..cea373c9f 100644
--- a/builtin/mainmenu/pkgmgr.lua
+++ b/builtin/mainmenu/pkgmgr.lua
@@ -505,7 +505,11 @@ function pkgmgr.install_dir(type, path, basename, targetpath)
fgettext("Failed to install $1 to $2", basename, targetpath)
end
- pkgmgr.refresh_globals()
+ if basefolder.type == "game" then
+ pkgmgr.update_gamelist()
+ else
+ pkgmgr.refresh_globals()
+ end
return targetpath, nil
end