Deleting world info entries should call `setgamesaved(False)`
This commit is contained in:
parent
4ca06ebcf3
commit
f0c39c004a
|
@ -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"]]
|
||||
|
|
Loading…
Reference in New Issue