Fix games not updating on deletion

As reported by @random-geek
This commit is contained in:
rubenwardy 2019-02-18 16:36:13 +00:00 committed by Nils Dagsson Moskopp
parent 8a47eee442
commit f737772867
Signed by: erle
GPG Key ID: A3BC671C35191080
1 changed files with 6 additions and 1 deletions

View File

@ -40,7 +40,12 @@ local function delete_content_buttonhandler(this, fields)
if not core.delete_dir(this.data.content.path) then
gamedata.errormessage = fgettext("pkgmgr: failed to delete \"$1\"", this.data.content.path)
end
pkgmgr.refresh_globals()
if this.data.content.type == "game" then
pkgmgr.update_gamelist()
else
pkgmgr.refresh_globals()
end
else
gamedata.errormessage = fgettext("pkgmgr: invalid path \"$1\"", this.data.content.path)
end