From 09d33bb0cd7665cb8748d000e99e2a6d13a97b8e Mon Sep 17 00:00:00 2001 From: daid Date: Tue, 27 Mar 2012 16:21:53 +0200 Subject: [PATCH] Add uppercase STL and HEX to file dialog filters for linux/MacOS --- Cura/newui/mainWindow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cura/newui/mainWindow.py b/Cura/newui/mainWindow.py index aecb1c5a..d87c3844 100644 --- a/Cura/newui/mainWindow.py +++ b/Cura/newui/mainWindow.py @@ -223,7 +223,7 @@ class mainWindow(configBase.configWindowBase): def OnCustomFirmware(self, e): dlg=wx.FileDialog(self, "Open firmware to upload", self.lastPath, style=wx.FD_OPEN|wx.FD_FILE_MUST_EXIST) - dlg.SetWildcard("HEX file (*.hex)|*.hex") + dlg.SetWildcard("HEX file (*.hex)|*.hex;*.HEX") if dlg.ShowModal() == wx.ID_OK: filename = dlg.GetPath() if not(os.path.exists(filename)): @@ -237,7 +237,7 @@ class mainWindow(configBase.configWindowBase): def OnLoadModel(self, e): dlg=wx.FileDialog(self, "Open file to print", self.lastPath, style=wx.FD_OPEN|wx.FD_FILE_MUST_EXIST) - dlg.SetWildcard("STL files (*.stl)|*.stl") + dlg.SetWildcard("STL files (*.stl)|*.stl;*.STL") if dlg.ShowModal() == wx.ID_OK: self.filename=dlg.GetPath() profile.putPreference('lastFile', self.filename) -- 2.30.2