From: rubenwardy Date: Wed, 9 Jan 2019 13:14:24 +0000 (+0000) Subject: pkgmgr: Fix games list not being updated after game install X-Git-Tag: 5.0.0~85 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4b04268304a2f798cea110415f360c165395b4fb;p=oweals%2Fminetest.git pkgmgr: Fix games list not being updated after game install Fixes #8074 --- 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