From 57517628f03632587f68b5e8a1e6c641be07e629 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 8bc80b103..9d89316a0 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