Skip to content

Commit

Permalink
pkgmgr: Fix games list not being updated after game install
Browse files Browse the repository at this point in the history
Fixes #8074
  • Loading branch information
rubenwardy committed Jan 9, 2019
1 parent 630c0ea commit 4b04268
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion builtin/mainmenu/pkgmgr.lua
Expand Up @@ -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
Expand Down

0 comments on commit 4b04268

Please sign in to comment.