Fix some minor coding errors

This commit is contained in:
Gnome Ann
2021-12-05 11:39:59 -05:00
parent 1393eac882
commit 6d8517e224
2 changed files with 23 additions and 5 deletions

View File

@ -2236,7 +2236,7 @@ def stablesortwi():
last_wi["init"] = False
last_folder = wi["folder"]
last_wi = wi
if(last_wi) is not None:
if(last_wi is not None):
last_wi["init"] = False
#==================================================================#
@ -2750,6 +2750,7 @@ def loadRequest(loadpath, filename=None):
for uid in vars.wifolders_l + [None]:
vars.worldinfo.append({"key": "", "keysecondary": "", "content": "", "comment": "", "folder": uid, "num": None, "init": False, "selective": False, "constant": False})
stablesortwi()
organizewi()
# Save path for save button
vars.savedir = loadpath