Make sure order of export formats is also the same

This commit is contained in:
DarkPhoenix
2019-02-11 13:13:00 +03:00
parent f2deb0e6c7
commit 98e6781077

View File

@@ -18,8 +18,11 @@
# ============================================================================= # =============================================================================
from collections import OrderedDict
# noinspection PyPackageRequirements # noinspection PyPackageRequirements
import wx import wx
from service.port.eft import EFT_OPTIONS from service.port.eft import EFT_OPTIONS
from service.settings import SettingsProvider from service.settings import SettingsProvider
@@ -39,14 +42,14 @@ class CopySelectDialog(wx.Dialog):
self.settings = SettingsProvider.getInstance().getSettings("pyfaExport", {"format": 0, "options": 0}) self.settings = SettingsProvider.getInstance().getSettings("pyfaExport", {"format": 0, "options": 0})
self.copyFormats = { self.copyFormats = OrderedDict((
"EFT": CopySelectDialog.copyFormatEft, ("EFT", CopySelectDialog.copyFormatEft),
"XML": CopySelectDialog.copyFormatXml, ("XML", CopySelectDialog.copyFormatXml),
"DNA": CopySelectDialog.copyFormatDna, ("DNA", CopySelectDialog.copyFormatDna),
"ESI": CopySelectDialog.copyFormatEsi, ("ESI", CopySelectDialog.copyFormatEsi),
"MultiBuy": CopySelectDialog.copyFormatMultiBuy, ("MultiBuy", CopySelectDialog.copyFormatMultiBuy),
"EFS": CopySelectDialog.copyFormatEfs ("EFS", CopySelectDialog.copyFormatEfs),
} ))
self.options = {} self.options = {}