forked from openlp/openlp
Fix removing dock with translation
This commit is contained in:
parent
d542e2762a
commit
e2c8ee11f2
|
@ -215,7 +215,7 @@ class MediaManagerItem(QtGui.QWidget):
|
||||||
loadString[u'title'],
|
loadString[u'title'],
|
||||||
loadString[u'tooltip'],
|
loadString[u'tooltip'],
|
||||||
u':/general/general_open.png', self.onFileClick)
|
u':/general/general_open.png', self.onFileClick)
|
||||||
## New Button ## rimach
|
## New Button ##
|
||||||
if self.hasNewIcon:
|
if self.hasNewIcon:
|
||||||
newString = self.plugin.getString(StringType.New)
|
newString = self.plugin.getString(StringType.New)
|
||||||
self.addToolbarButton(
|
self.addToolbarButton(
|
||||||
|
|
|
@ -127,8 +127,8 @@ class Plugin(QtCore.QObject):
|
||||||
Defaults to *None*. A list of helper objects.
|
Defaults to *None*. A list of helper objects.
|
||||||
"""
|
"""
|
||||||
QtCore.QObject.__init__(self)
|
QtCore.QObject.__init__(self)
|
||||||
self.name = name
|
|
||||||
self.set_plugin_strings()
|
self.set_plugin_strings()
|
||||||
|
self.name = name
|
||||||
if version:
|
if version:
|
||||||
self.version = version
|
self.version = version
|
||||||
self.settingsSection = self.name.lower()
|
self.settingsSection = self.name.lower()
|
||||||
|
@ -269,7 +269,7 @@ class Plugin(QtCore.QObject):
|
||||||
Called by the plugin to remove toolbar
|
Called by the plugin to remove toolbar
|
||||||
"""
|
"""
|
||||||
if self.mediaItem:
|
if self.mediaItem:
|
||||||
self.mediadock.remove_dock(self.name)
|
self.mediadock.remove_dock(self.name_lower)
|
||||||
if self.settings_tab:
|
if self.settings_tab:
|
||||||
self.settingsForm.removeTab(self.name)
|
self.settingsForm.removeTab(self.name)
|
||||||
|
|
||||||
|
@ -315,5 +315,5 @@ class Plugin(QtCore.QObject):
|
||||||
"""
|
"""
|
||||||
self.name = u'Plugin'
|
self.name = u'Plugin'
|
||||||
self.name_lower = u'plugin'
|
self.name_lower = u'plugin'
|
||||||
|
|
||||||
self.strings = {}
|
self.strings = {}
|
||||||
|
|
|
@ -40,7 +40,6 @@ class AlertsPlugin(Plugin):
|
||||||
log.info(u'Alerts Plugin loaded')
|
log.info(u'Alerts Plugin loaded')
|
||||||
|
|
||||||
def __init__(self, plugin_helpers):
|
def __init__(self, plugin_helpers):
|
||||||
self.set_plugin_strings()
|
|
||||||
Plugin.__init__(self, u'Alerts', u'1.9.2', plugin_helpers)
|
Plugin.__init__(self, u'Alerts', u'1.9.2', plugin_helpers)
|
||||||
self.weight = -3
|
self.weight = -3
|
||||||
self.icon = build_icon(u':/plugins/plugin_alerts.png')
|
self.icon = build_icon(u':/plugins/plugin_alerts.png')
|
||||||
|
|
|
@ -37,7 +37,6 @@ class BiblePlugin(Plugin):
|
||||||
log.info(u'Bible Plugin loaded')
|
log.info(u'Bible Plugin loaded')
|
||||||
|
|
||||||
def __init__(self, plugin_helpers):
|
def __init__(self, plugin_helpers):
|
||||||
self.set_plugin_strings()
|
|
||||||
Plugin.__init__(self, u'Bibles', u'1.9.2', plugin_helpers)
|
Plugin.__init__(self, u'Bibles', u'1.9.2', plugin_helpers)
|
||||||
self.weight = -9
|
self.weight = -9
|
||||||
self.icon_path = u':/plugins/plugin_bibles.png'
|
self.icon_path = u':/plugins/plugin_bibles.png'
|
||||||
|
|
|
@ -47,7 +47,6 @@ class CustomPlugin(Plugin):
|
||||||
log.info(u'Custom Plugin loaded')
|
log.info(u'Custom Plugin loaded')
|
||||||
|
|
||||||
def __init__(self, plugin_helpers):
|
def __init__(self, plugin_helpers):
|
||||||
self.set_plugin_strings()
|
|
||||||
Plugin.__init__(self, u'Custom', u'1.9.2', plugin_helpers)
|
Plugin.__init__(self, u'Custom', u'1.9.2', plugin_helpers)
|
||||||
self.weight = -5
|
self.weight = -5
|
||||||
self.custommanager = Manager(u'custom', init_schema)
|
self.custommanager = Manager(u'custom', init_schema)
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue