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:
parent
ac8890b207
commit
c6150737a7
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue