mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Fix games not updating on deletion
As reported by @random-geek
This commit is contained in:
parent
cc9bed9321
commit
57517628f0
1 changed files with 6 additions and 1 deletions
|
@ -40,7 +40,12 @@ local function delete_content_buttonhandler(this, fields)
|
||||||
if not core.delete_dir(this.data.content.path) then
|
if not core.delete_dir(this.data.content.path) then
|
||||||
gamedata.errormessage = fgettext("pkgmgr: failed to delete \"$1\"", this.data.content.path)
|
gamedata.errormessage = fgettext("pkgmgr: failed to delete \"$1\"", this.data.content.path)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if this.data.content.type == "game" then
|
||||||
|
pkgmgr.update_gamelist()
|
||||||
|
else
|
||||||
pkgmgr.refresh_globals()
|
pkgmgr.refresh_globals()
|
||||||
|
end
|
||||||
else
|
else
|
||||||
gamedata.errormessage = fgettext("pkgmgr: invalid path \"$1\"", this.data.content.path)
|
gamedata.errormessage = fgettext("pkgmgr: invalid path \"$1\"", this.data.content.path)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue