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()
|
fp.close()
|
||||||
|
|
||||||
self.message("config.h successfully saved.", "Save configuration success",
|
|
||||||
wx.OK + wx.ICON_INFORMATION)
|
|
||||||
|
|
||||||
self.checkEnableLoadConfig()
|
self.checkEnableLoadConfig()
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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()
|
||||||
|
|
|
||||||
|
|
@ -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):
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue