Make sure order of options doesn't depend on order of options in memory (which can be random as it's dict)

This commit is contained in:
DarkPhoenix
2019-02-11 12:57:27 +03:00
parent a5efea56ab
commit f2deb0e6c7
2 changed files with 8 additions and 14 deletions

View File

@@ -64,10 +64,10 @@ class CopySelectDialog(wx.Dialog):
if format == "EFT":
bsizer = wx.BoxSizer(wx.VERTICAL)
for x, v in EFT_OPTIONS.items():
ch = wx.CheckBox(self, -1, v['name'])
self.options[x] = ch
if self.settings['options'] & x:
for optId, optName, optDesc in EFT_OPTIONS:
ch = wx.CheckBox(self, -1, optName)
self.options[optId] = ch
if self.settings['options'] & optId:
ch.SetValue(True)
bsizer.Add(ch, 1, wx.EXPAND | wx.TOP | wx.BOTTOM, 3)
mainSizer.Add(bsizer, 1, wx.EXPAND | wx.LEFT, 20)