diff --git a/src/calibre/gui2/update.py b/src/calibre/gui2/update.py index 40bbc78266..4f77423463 100644 --- a/src/calibre/gui2/update.py +++ b/src/calibre/gui2/update.py @@ -82,11 +82,14 @@ class UpdateNotification(QDialog): self.logo.setMaximumWidth(110) self.logo.setPixmap(QPixmap(I('lt.png')).scaled(100, 100, Qt.IgnoreAspectRatio, Qt.SmoothTransformation)) + ver = calibre_version + if ver.endswith('.0'): + ver = ver[:-2] self.label = QLabel(('

'+ _('New version %(ver)s of %(app)s is available for download. ' 'See the new features.'))%dict( - app=__appname__, ver=calibre_version)) + app=__appname__, ver=ver)) self.label.setOpenExternalLinks(True) self.label.setWordWrap(True) self.setWindowTitle(_('Update available!')) @@ -169,7 +172,6 @@ class UpdateMixin(object): self.status_bar.update_label.setText(msg) self.status_bar.update_label.setVisible(True) - if has_calibre_update: if (force or (config.get('new_version_notification') and dynamic.get('update to version %s'%calibre_version, True))):