Configtool: simpler regex on OS X in the Save As... dialog as well.
Not neccessary on vintage Mac OS X 10.4, but might help with issue #165.
This commit is contained in:
parent
e0e6c33bc4
commit
c135c4c502
|
|
@ -217,7 +217,11 @@ class BoardPanel(wx.Panel):
|
|||
return self.saveConfigFile(path)
|
||||
|
||||
def onSaveConfigAs(self, evt):
|
||||
wildcard = "Board configuration (board.*.h)|board.*.h"
|
||||
if platform.startswith("darwin"):
|
||||
# Mac OS X appears to be a bit limited on wildcards.
|
||||
wildcard = "Board configuration (board.*.h)|*.h"
|
||||
else:
|
||||
wildcard = "Board configuration (board.*.h)|board.*.h"
|
||||
|
||||
dlg = wx.FileDialog(self, message = "Save as ...", defaultDir = self.dir,
|
||||
defaultFile = "", wildcard = wildcard,
|
||||
|
|
|
|||
|
|
@ -198,7 +198,11 @@ class PrinterPanel(wx.Panel):
|
|||
return self.saveConfigFile(path)
|
||||
|
||||
def onSaveConfigAs(self, evt):
|
||||
wildcard = "Printer configuration (printer.*.h)|printer.*.h"
|
||||
if platform.startswith("darwin"):
|
||||
# Mac OS X appears to be a bit limited on wildcards.
|
||||
wildcard = "Printer configuration (printer.*.h)|*.h"
|
||||
else:
|
||||
wildcard = "Printer configuration (printer.*.h)|printer.*.h"
|
||||
|
||||
dlg = wx.FileDialog(self, message = "Save as ...", defaultDir = self.dir,
|
||||
defaultFile = "", wildcard = wildcard,
|
||||
|
|
|
|||
Loading…
Reference in New Issue