Deleting world info entries should call `setgamesaved(False)`

This commit is contained in:
Gnome Ann 2022-01-18 19:36:20 -05:00
parent 4ca06ebcf3
commit f0c39c004a
1 changed files with 2 additions and 0 deletions

View File

@ -3559,6 +3559,7 @@ def commitwi(ar):
#==================================================================#
def deletewi(uid):
if(uid in vars.worldinfo_u):
setgamesaved(False)
# Store UID of deletion request
vars.deletewi = uid
if(vars.deletewi is not None):
@ -3584,6 +3585,7 @@ def deletewifolder(uid):
del vars.wifolders_u[uid]
del vars.wifolders_d[uid]
del vars.wifolders_l[vars.wifolders_l.index(uid)]
setgamesaved(False)
# Delete uninitialized entries in the folder we're going to delete
vars.worldinfo = [wi for wi in vars.worldinfo if wi["folder"] != uid or wi["init"]]
vars.worldinfo_i = [wi for wi in vars.worldinfo if wi["init"]]