diff --git a/configtool.py b/configtool.py index 8a183d7..fd0e867 100755 --- a/configtool.py +++ b/configtool.py @@ -363,9 +363,6 @@ class ConfigFrame(wx.Frame): fp.close() - self.message("config.h successfully saved.", "Save configuration success", - wx.OK + wx.ICON_INFORMATION) - self.checkEnableLoadConfig() return True diff --git a/configtool/boardpanel.py b/configtool/boardpanel.py index c30baf7..e97a57d 100644 --- a/configtool/boardpanel.py +++ b/configtool/boardpanel.py @@ -608,18 +608,7 @@ class BoardPanel(wx.Panel): fp.close() - dlg = wx.MessageDialog(self, "File %s successfully written." % path, - "Save successful", wx.OK + wx.ICON_INFORMATION) - dlg.ShowModal() - dlg.Destroy() - - if generateTempTables(self.sensors, self.settings): - dlg = wx.MessageDialog(self, - "File thermistortable.h successfully written.", - "Save successful", wx.OK + wx.ICON_INFORMATION) - dlg.ShowModal() - dlg.Destroy() - else: + if not generateTempTables(self.sensors, self.settings): dlg = wx.MessageDialog(self, "Error writing to file thermistortable.h.", "File error", wx.OK + wx.ICON_ERROR) dlg.ShowModal() diff --git a/configtool/printerpanel.py b/configtool/printerpanel.py index 578f166..fb13730 100644 --- a/configtool/printerpanel.py +++ b/configtool/printerpanel.py @@ -423,11 +423,6 @@ class PrinterPanel(wx.Panel): fp.close() - dlg = wx.MessageDialog(self, "File %s successfully written." % path, - "Save successful", wx.OK + wx.ICON_INFORMATION) - dlg.ShowModal() - dlg.Destroy() - return True def addNewDefine(self, fp, key, val): diff --git a/configtool/settings.py b/configtool/settings.py index 38496d8..09ab8e9 100644 --- a/configtool/settings.py +++ b/configtool/settings.py @@ -98,9 +98,6 @@ class Settings: self.cfg.write(cfp) cfp.close() - self.app.message(INIFILE + " successfully saved.\n", - "Save settings success", wx.OK + wx.ICON_INFORMATION) - ARDUINODIR = 0 CFLAGS = 1