diff --git a/src/calibre/gui2/dialogs/config.py b/src/calibre/gui2/dialogs/config.py index 0b32ab66cd..89a90f04f0 100644 --- a/src/calibre/gui2/dialogs/config.py +++ b/src/calibre/gui2/dialogs/config.py @@ -35,6 +35,7 @@ class ConfigDialog(QDialog, Ui_Dialog): rn = settings.get('use roman numerals for series number', True) self.timeout.setValue(settings.get('network timeout', 5)) self.roman_numerals.setChecked(rn) + self.new_version_notification.setChecked(settings.get('new version notification', True)) self.directory_list.addItems(dirs) self.connect(self.add_button, SIGNAL('clicked(bool)'), self.add_dir) self.connect(self.remove_button, SIGNAL('clicked(bool)'), self.remove_dir) @@ -88,6 +89,7 @@ class ConfigDialog(QDialog, Ui_Dialog): def accept(self): settings = Settings() settings.set('use roman numerals for series number', bool(self.roman_numerals.isChecked())) + settings.set('new version notification', bool(self.new_version_notification.isChecked())) settings.set('network timeout', int(self.timeout.value())) path = qstring_to_unicode(self.location.text()) self.final_columns = [self.columns.item(i).checkState() == Qt.Checked for i in range(self.columns.count())] diff --git a/src/calibre/gui2/dialogs/config.ui b/src/calibre/gui2/dialogs/config.ui index 5d00292794..1599520aca 100644 --- a/src/calibre/gui2/dialogs/config.ui +++ b/src/calibre/gui2/dialogs/config.ui @@ -78,6 +78,14 @@ 0 + + + 0 + 0 + 595 + 638 + + @@ -124,6 +132,13 @@ + + + + Show notification when &new version is available + + + diff --git a/src/calibre/gui2/main.py b/src/calibre/gui2/main.py index 18b9dc3231..58dcaa7543 100644 --- a/src/calibre/gui2/main.py +++ b/src/calibre/gui2/main.py @@ -1209,7 +1209,7 @@ class Main(MainWindow, Ui_MainWindow): device=self.device_info))) self.vanity.update() s = Settings() - if s.get('update to version %s'%version, True): + if s.get('new version notification', True) and s.get('update to version %s'%version, True): d = question_dialog(self, _('Update available'), _('%s has been updated to version %s. See the new features. Visit the download page?')%(__appname__, version)) if d.exec_() == QMessageBox.Yes: url = 'http://calibre.kovidgoyal.net/download_'+('windows' if iswindows else 'osx' if isosx else 'linux')