Rework how single windows are opened

This commit is contained in:
DarkPhoenix
2019-08-12 01:11:44 +03:00
parent 8a3dc2f3dc
commit 1e35eaf62a
6 changed files with 23 additions and 23 deletions

View File

@@ -173,8 +173,9 @@ class EntityEditor(wx.Panel):
try:
idx = self.choices.index(entity)
except IndexError:
return
return False
self.entityChoices.SetSelection(idx)
return True
def checkEntitiesExist(self):
if len(self.choices) == 0: