From 98e678107740f3800a4a6d3f6291da7f079dd4d4 Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Mon, 11 Feb 2019 13:13:00 +0300 Subject: [PATCH] Make sure order of export formats is also the same --- gui/copySelectDialog.py | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/gui/copySelectDialog.py b/gui/copySelectDialog.py index 4453fab39..d0eba966b 100644 --- a/gui/copySelectDialog.py +++ b/gui/copySelectDialog.py @@ -18,8 +18,11 @@ # ============================================================================= +from collections import OrderedDict + # noinspection PyPackageRequirements import wx + from service.port.eft import EFT_OPTIONS from service.settings import SettingsProvider @@ -39,14 +42,14 @@ class CopySelectDialog(wx.Dialog): self.settings = SettingsProvider.getInstance().getSettings("pyfaExport", {"format": 0, "options": 0}) - self.copyFormats = { - "EFT": CopySelectDialog.copyFormatEft, - "XML": CopySelectDialog.copyFormatXml, - "DNA": CopySelectDialog.copyFormatDna, - "ESI": CopySelectDialog.copyFormatEsi, - "MultiBuy": CopySelectDialog.copyFormatMultiBuy, - "EFS": CopySelectDialog.copyFormatEfs - } + self.copyFormats = OrderedDict(( + ("EFT", CopySelectDialog.copyFormatEft), + ("XML", CopySelectDialog.copyFormatXml), + ("DNA", CopySelectDialog.copyFormatDna), + ("ESI", CopySelectDialog.copyFormatEsi), + ("MultiBuy", CopySelectDialog.copyFormatMultiBuy), + ("EFS", CopySelectDialog.copyFormatEfs), + )) self.options = {}