diff --git a/configtool.py b/configtool.py index 5983d1b..b68ab76 100755 --- a/configtool.py +++ b/configtool.py @@ -454,11 +454,6 @@ class ConfigFrame(wx.Frame): dlg = SettingsDlg(self, self.settings) rc = dlg.ShowModal() dlg.Destroy() - if rc != wx.ID_OK: - return - - m = "configtool.default.ini successfully saved.\n" - self.message(m, "Save settings success", wx.OK + wx.ICON_INFORMATION) def message(self, text, title, style = wx.OK + wx.ICON_ERROR): dlg = wx.MessageDialog(self, text, title, style) diff --git a/configtool/settings.py b/configtool/settings.py index 3fd7c85..dee057e 100644 --- a/configtool/settings.py +++ b/configtool/settings.py @@ -70,6 +70,9 @@ 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