diff --git a/CHANGELOG.md b/CHANGELOG.md index 7a0702db..5456100d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ CHANGELOG for FlatCAM beta - fixed some recently introduced issues for the Milling and Drilling Plugins; those plugins did not had the pluginName defined in the Plugin UI - in the canvas context menu added the menu for color changing - when doing color changing now only Gerber and Excellon objects can have the colors changed +- fixed an issue within the version checking (inherited from FlatCAM) 8.10.2021 diff --git a/app_Main.py b/app_Main.py index fddb0f6b..0974a309 100644 --- a/app_Main.py +++ b/app_Main.py @@ -1389,7 +1389,8 @@ class App(QtCore.QObject): # signal to be called when the app is quiting self.app_quit.connect(self.quit_application, type=Qt.ConnectionType.QueuedConnection) - self.message.connect(lambda: message_dialog(parent=self.ui)) + self.message.connect( + lambda title, msg, kind: message_dialog(title=title, message=msg, kind=kind, parent=self.ui)) # self.progress.connect(self.set_progress_bar) # signals emitted when file state change @@ -8526,15 +8527,13 @@ class App(QtCore.QObject): return self.log.debug("Newer version available.") - self.message.emit( - _("Newer Version Available"), - '%s

>%s
%s' % ( + title = _("Newer Version Available") + msg = '%s

>%s
%s' % ( _("There is a newer version of FlatCAM available for download:"), str(data["name"]), str(data["message"]) - ), - _("info") - ) + ) + self.message.emit(title, msg, "info") def on_plotcanvas_setup(self, container=None): """