pkgmgr: Fix games list not being updated after game install

Fixes #8074
This commit is contained in:
rubenwardy 2019-01-09 13:14:24 +00:00 committed by Nils Dagsson Moskopp
parent a4f320242f
commit 9275e49a34
Signed by: erlehmann
GPG Key ID: A3BC671C35191080
1 changed files with 5 additions and 1 deletions

View File

@ -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