forked from openlp/openlp
Minor performance improvement
This commit is contained in:
parent
c5a7127aec
commit
9f9f2186ae
@ -366,7 +366,7 @@ class ServiceItem(object):
|
|||||||
self.notes = other.notes
|
self.notes = other.notes
|
||||||
# copy theme over if present. Assumes overridden
|
# copy theme over if present. Assumes overridden
|
||||||
if other.theme is not None:
|
if other.theme is not None:
|
||||||
self.theme = other.theme
|
self.update_theme(other.theme)
|
||||||
if self.is_capable(ItemCapabilities.HasBackgroundAudio):
|
if self.is_capable(ItemCapabilities.HasBackgroundAudio):
|
||||||
log.debug(self.background_audio)
|
log.debug(self.background_audio)
|
||||||
|
|
||||||
|
@ -1160,7 +1160,6 @@ class ServiceManager(QtGui.QWidget):
|
|||||||
# if not passed set to config value
|
# if not passed set to config value
|
||||||
if expand is None:
|
if expand is None:
|
||||||
expand = self.expandTabs
|
expand = self.expandTabs
|
||||||
item.render()
|
|
||||||
item.from_service = True
|
item.from_service = True
|
||||||
if replace:
|
if replace:
|
||||||
sitem, child = self.findServiceItem()
|
sitem, child = self.findServiceItem()
|
||||||
@ -1169,6 +1168,7 @@ class ServiceManager(QtGui.QWidget):
|
|||||||
self.repaintServiceList(sitem, child)
|
self.repaintServiceList(sitem, child)
|
||||||
self.mainwindow.liveController.replaceServiceManagerItem(item)
|
self.mainwindow.liveController.replaceServiceManagerItem(item)
|
||||||
else:
|
else:
|
||||||
|
item.render()
|
||||||
# nothing selected for dnd
|
# nothing selected for dnd
|
||||||
if self.dropPosition == 0:
|
if self.dropPosition == 0:
|
||||||
if isinstance(item, list):
|
if isinstance(item, list):
|
||||||
|
Loading…
Reference in New Issue
Block a user