Added a wildcard for EFT files to the import box.

Also fixed a dialog box leak in the backup fits function.
This commit is contained in:
Lucas Thode
2010-10-26 10:38:48 -05:00
parent 723d4e9c85
commit 2749298e21

View File

@@ -154,7 +154,7 @@ class MainFrame(wx.Frame):
dlg=wx.FileDialog(
self,
"Pick one or more fitting files to import",
wildcard = "EvE XML fitting files (*.xml)|*.xml|All Files (*.*)|*.*",
wildcard = "EFT text fitting files (*.cfg)|*.cfg|EvE XML fitting files (*.xml)|*.xml|All Files (*)|*",
style = wx.FD_OPEN | wx.FD_FILE_MUST_EXIST | wx.FD_MULTIPLE)
if (dlg.ShowModal() == wx.ID_OK):
try:
@@ -254,12 +254,13 @@ class MainFrame(wx.Frame):
sFit = service.Fit.getInstance()
saveDialog = wx.FileDialog(
self,
"Choose where to save the backup: ",
"Choose where to save the backup",
wildcard = "EvE XML fitting file (*.xml)|*.xml",
style = wx.FD_SAVE | wx.FD_OVERWRITE_PROMPT)
if (saveDialog.ShowModal() == wx.ID_OK):
filePath = saveDialog.GetPath()
sFit.backupFits(filePath)
saveDialog.Destroy()
def toggleShipBrowser(self, event):
self.GetToolBar().toggleShipBrowser(event)