Ensure 0 version updates are not reported

This commit is contained in:
Kovid Goyal 2019-04-11 09:03:17 +05:30
parent 0e1a89c338
commit 6e87989022
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -207,7 +207,7 @@ class UpdateMixin(object):
def update_found(self, calibre_version, number_of_plugin_updates, force=False, no_show_popup=False):
self.last_newest_calibre_version = calibre_version
has_calibre_update = calibre_version != NO_CALIBRE_UPDATE
has_calibre_update = calibre_version != NO_CALIBRE_UPDATE and calibre_version[0] > 0
has_plugin_updates = number_of_plugin_updates > 0
self.plugin_update_found(number_of_plugin_updates)
version_url = as_hex_unicode(msgpack_dumps((calibre_version, number_of_plugin_updates)))