summaryrefslogtreecommitdiff
path: root/libre/calibre/0001-Remove-new_version_notification.patch
diff options
context:
space:
mode:
authorJesús Eduardo <heckyel@openmailbox.org>2017-06-16 23:22:55 +0000
committerJesús Eduardo <heckyel@openmailbox.org>2017-06-16 23:22:55 +0000
commit1b515cc38eec3a9009c8cc93bf130007ada3f07d (patch)
treedee5720973f6cf223843096a69924f66d9a137d1 /libre/calibre/0001-Remove-new_version_notification.patch
parentc5b5d531aab63d7c2b8088d4e46fe8cfc3829e74 (diff)
downloadabslibre-1b515cc38eec3a9009c8cc93bf130007ada3f07d.tar.gz
abslibre-1b515cc38eec3a9009c8cc93bf130007ada3f07d.tar.bz2
abslibre-1b515cc38eec3a9009c8cc93bf130007ada3f07d.zip
update and patch of calibre 3.0.0
Diffstat (limited to 'libre/calibre/0001-Remove-new_version_notification.patch')
-rw-r--r--libre/calibre/0001-Remove-new_version_notification.patch79
1 files changed, 0 insertions, 79 deletions
diff --git a/libre/calibre/0001-Remove-new_version_notification.patch b/libre/calibre/0001-Remove-new_version_notification.patch
deleted file mode 100644
index a11c04323..000000000
--- a/libre/calibre/0001-Remove-new_version_notification.patch
+++ /dev/null
@@ -1,79 +0,0 @@
-diff --git a/src/calibre/gui2/__init__.py b/src/calibre/gui2/__init__.py
-index 7238c97..1d4491f 100644
---- a/src/calibre/gui2/__init__.py
-+++ b/src/calibre/gui2/__init__.py
-@@ -168,8 +168,6 @@ def _config(): # {{{
- help=_('Confirm before deleting'))
- c.add_opt('main_window_geometry', default=None,
- help=_('Main window geometry'))
-- c.add_opt('new_version_notification', default=True,
-- help=_('Notify when a new version is available'))
- c.add_opt('use_roman_numerals_for_series_number', default=True,
- help=_('Use Roman numerals for series number'))
- c.add_opt('sort_tags_by', default='name',
-diff --git a/src/calibre/gui2/preferences/behavior.py b/src/calibre/gui2/preferences/behavior.py
-index 6db4cb1..51b7ed0 100644
---- a/src/calibre/gui2/preferences/behavior.py
-+++ b/src/calibre/gui2/preferences/behavior.py
-@@ -40,7 +40,6 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form):
-
- r('network_timeout', prefs)
-
-- r('new_version_notification', config)
- r('upload_news_to_device', config)
- r('delete_news_from_library_on_upload', config)
-
-diff --git a/src/calibre/gui2/preferences/behavior.ui b/src/calibre/gui2/preferences/behavior.ui
-index ae4c20d..4bdfa6d 100644
---- a/src/calibre/gui2/preferences/behavior.ui
-+++ b/src/calibre/gui2/preferences/behavior.ui
-@@ -14,13 +14,6 @@
- <string>Form</string>
- </property>
- <layout class="QGridLayout" name="gridLayout">
-- <item row="1" column="0">
-- <widget class="QCheckBox" name="opt_new_version_notification">
-- <property name="text">
-- <string>Show notification when &amp;new version is available</string>
-- </property>
-- </widget>
-- </item>
- <item row="1" column="1">
- <widget class="QCheckBox" name="opt_bools_are_tristate">
- <property name="toolTip">
-diff --git a/src/calibre/gui2/update.py b/src/calibre/gui2/update.py
-index 9ce55d0..ca68eb8 100644
---- a/src/calibre/gui2/update.py
-+++ b/src/calibre/gui2/update.py
-@@ -125,11 +125,6 @@ class UpdateNotification(QDialog):
- self.setWindowIcon(QIcon(I('lt.png')))
- self.l.addWidget(self.logo, 0, 0)
- self.l.addWidget(self.label, 0, 1)
-- self.cb = QCheckBox(
-- _('Show this notification for future updates'), self)
-- self.l.addWidget(self.cb, 1, 0, 1, -1)
-- self.cb.setChecked(config.get('new_version_notification'))
-- self.cb.stateChanged.connect(self.show_future)
- self.bb = QDialogButtonBox(self)
- b = self.bb.addButton(_('&Get update'), self.bb.AcceptRole)
- b.setDefault(True)
-@@ -151,9 +146,6 @@ class UpdateNotification(QDialog):
- initial_filter=FILTER_UPDATE_AVAILABLE)
- d.exec_()
-
-- def show_future(self, *args):
-- config.set('new_version_notification', bool(self.cb.isChecked()))
--
- def accept(self):
- open_url(QUrl(get_download_url()))
-
-@@ -201,8 +193,7 @@ class UpdateMixin(object):
- 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))):
-+ if force:
- if not no_show_popup:
- self._update_notification__ = UpdateNotification(calibre_version,
- number_of_plugin_updates, parent=self)