mirror of https://gitlab.com/openlp/openlp.git
Small fix ups and corrections. Plugin list obeys can_be_diabled
This commit is contained in:
commit
7ee0549df2
|
@ -90,7 +90,7 @@ class PluginManager(object):
|
|||
try:
|
||||
__import__(modulename, globals(), locals(), [])
|
||||
except ImportError, e:
|
||||
log.error(u'Failed to import module %s on path %s for reason %s',
|
||||
log.exception(u'Failed to import module %s on path %s for reason %s',
|
||||
modulename, path, e.args[0])
|
||||
plugin_classes = Plugin.__subclasses__()
|
||||
self.plugins = []
|
||||
|
|
|
@ -528,9 +528,7 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
|
|||
self.versionCheck()
|
||||
|
||||
def versionCheck(self):
|
||||
# We do not want this in development!
|
||||
if not log.isEnabledFor(logging.DEBUG):
|
||||
applicationVersion = self.generalConfig.get_config(u'Application version', u'1.9.0')
|
||||
applicationVersion = self.generalConfig.get_config(u'Application version', u'1.9.0-595')
|
||||
version = LatestVersion(self.generalConfig).checkVersion(applicationVersion)
|
||||
if applicationVersion != version:
|
||||
QtGui.QMessageBox.question(None,
|
||||
|
|
|
@ -83,7 +83,11 @@ class PluginForm(QtGui.QDialog, Ui_PluginViewDialog):
|
|||
log.debug('PluginStatus: %s', str(self.activePlugin.status))
|
||||
self.VersionNumberLabel.setText(self.activePlugin.version)
|
||||
self.AboutTextBrowser.setHtml(self.activePlugin.about())
|
||||
if self.activePlugin.can_be_disabled():
|
||||
self.StatusComboBox.setCurrentIndex(int(self.activePlugin.status))
|
||||
self.StatusComboBox.setEnabled(True)
|
||||
else:
|
||||
self.StatusComboBox.setEnabled(False)
|
||||
|
||||
def onPluginListWidgetSelectionChanged(self):
|
||||
if self.PluginListWidget.currentItem() is None:
|
||||
|
|
Loading…
Reference in New Issue