From f7377728672826a5c82da771f8b7866cd1581b0b Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Mon, 18 Feb 2019 16:36:13 +0000 Subject: [PATCH] Fix games not updating on deletion As reported by @random-geek --- builtin/mainmenu/dlg_delete_content.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/builtin/mainmenu/dlg_delete_content.lua b/builtin/mainmenu/dlg_delete_content.lua index 8bc80b1..9d89316 100644 --- a/builtin/mainmenu/dlg_delete_content.lua +++ b/builtin/mainmenu/dlg_delete_content.lua @@ -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