mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
py3: also make plugin installer work
We check if versions compare favorably to the installed version, and if it None, then we report that it can be installed. But this check always returns None < available_version on python2, and on python3 it is a comparison error -- so lift out the None handling to return as early as possible.
This commit is contained in:
parent
eab2c99b60
commit
4fc124adb0
@ -412,11 +412,10 @@ class DisplayPluginModel(QAbstractTableModel):
|
||||
return (_('You must upgrade to at least calibre %s before installing this plugin') %
|
||||
self._get_display_version(display_plugin.calibre_required_version)+'\n\n'+
|
||||
_('Right-click to see more options'))
|
||||
if display_plugin.installed_version < display_plugin.available_version:
|
||||
if display_plugin.installed_version is None:
|
||||
return (_('You can install this plugin')+'\n\n'+
|
||||
_('Right-click to see more options'))
|
||||
else:
|
||||
if display_plugin.installed_version < display_plugin.available_version:
|
||||
return (_('A new version of this plugin is available')+'\n\n'+
|
||||
_('Right-click to see more options'))
|
||||
return (_('This plugin is installed and up-to-date')+'\n\n'+
|
||||
|
Loading…
x
Reference in New Issue
Block a user