forked from openlp/openlp
Fix bug with Inactive not working
This commit is contained in:
parent
5be85c07a3
commit
af5ae6047a
@ -76,6 +76,6 @@ class MediaDockManager(object):
|
|||||||
log.debug(u'remove %s dock' % name)
|
log.debug(u'remove %s dock' % name)
|
||||||
for dock_index in range(0, self.media_dock.count()):
|
for dock_index in range(0, self.media_dock.count()):
|
||||||
if self.media_dock.widget(dock_index):
|
if self.media_dock.widget(dock_index):
|
||||||
if self.media_dock.widget(dock_index).settingsSection == name:
|
if self.media_dock.widget(dock_index).settingsSection == name.lower():
|
||||||
self.media_dock.widget(dock_index).hide()
|
self.media_dock.widget(dock_index).hide()
|
||||||
self.media_dock.removeItem(dock_index)
|
self.media_dock.removeItem(dock_index)
|
||||||
|
@ -64,16 +64,12 @@ class SongsPlugin(Plugin):
|
|||||||
# self.songmanager = SongManager()
|
# self.songmanager = SongManager()
|
||||||
Plugin.initialise(self)
|
Plugin.initialise(self)
|
||||||
self.insert_toolbox_item()
|
self.insert_toolbox_item()
|
||||||
#self.ImportSongMenu.menuAction().setVisible(True)
|
|
||||||
#self.ExportSongMenu.menuAction().setVisible(True)
|
|
||||||
self.media_item.displayResultsSong(self.manager.get_songs())
|
self.media_item.displayResultsSong(self.manager.get_songs())
|
||||||
|
|
||||||
def finalise(self):
|
def finalise(self):
|
||||||
log.info(u'Plugin Finalise')
|
log.info(u'Plugin Finalise')
|
||||||
Plugin.finalise(self)
|
Plugin.finalise(self)
|
||||||
self.remove_toolbox_item()
|
self.remove_toolbox_item()
|
||||||
#self.ImportSongMenu.menuAction().setVisible(False)
|
|
||||||
#self.ExportSongMenu.menuAction().setVisible(False)
|
|
||||||
|
|
||||||
def get_media_manager_item(self):
|
def get_media_manager_item(self):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user