Make sure order of export formats is also the same
This commit is contained in:
@@ -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 = {}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user