Configtool: don't report successful file saves.

This is the expected outcome, so explicitely reporting this, with
requiring the user to click a dialog box away, is kind of clutter.

This should solve issue #136.
This commit is contained in:
jbernardis 2015-04-28 20:12:14 -04:00 committed by Markus Hitter
parent ac8890b207
commit c6150737a7
4 changed files with 1 additions and 23 deletions

View File

@ -363,9 +363,6 @@ class ConfigFrame(wx.Frame):
fp.close() fp.close()
self.message("config.h successfully saved.", "Save configuration success",
wx.OK + wx.ICON_INFORMATION)
self.checkEnableLoadConfig() self.checkEnableLoadConfig()
return True return True

View File

@ -608,18 +608,7 @@ class BoardPanel(wx.Panel):
fp.close() fp.close()
dlg = wx.MessageDialog(self, "File %s successfully written." % path, if not generateTempTables(self.sensors, self.settings):
"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:
dlg = wx.MessageDialog(self, "Error writing to file thermistortable.h.", dlg = wx.MessageDialog(self, "Error writing to file thermistortable.h.",
"File error", wx.OK + wx.ICON_ERROR) "File error", wx.OK + wx.ICON_ERROR)
dlg.ShowModal() dlg.ShowModal()

View File

@ -423,11 +423,6 @@ class PrinterPanel(wx.Panel):
fp.close() fp.close()
dlg = wx.MessageDialog(self, "File %s successfully written." % path,
"Save successful", wx.OK + wx.ICON_INFORMATION)
dlg.ShowModal()
dlg.Destroy()
return True return True
def addNewDefine(self, fp, key, val): def addNewDefine(self, fp, key, val):

View File

@ -98,9 +98,6 @@ class Settings:
self.cfg.write(cfp) self.cfg.write(cfp)
cfp.close() cfp.close()
self.app.message(INIFILE + " successfully saved.\n",
"Save settings success", wx.OK + wx.ICON_INFORMATION)
ARDUINODIR = 0 ARDUINODIR = 0
CFLAGS = 1 CFLAGS = 1