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
|
||||
# copy theme over if present. Assumes overridden
|
||||
if other.theme is not None:
|
||||
self.theme = other.theme
|
||||
self.update_theme(other.theme)
|
||||
if self.is_capable(ItemCapabilities.HasBackgroundAudio):
|
||||
log.debug(self.background_audio)
|
||||
|
||||
|
@ -1160,7 +1160,6 @@ class ServiceManager(QtGui.QWidget):
|
||||
# if not passed set to config value
|
||||
if expand is None:
|
||||
expand = self.expandTabs
|
||||
item.render()
|
||||
item.from_service = True
|
||||
if replace:
|
||||
sitem, child = self.findServiceItem()
|
||||
@ -1169,6 +1168,7 @@ class ServiceManager(QtGui.QWidget):
|
||||
self.repaintServiceList(sitem, child)
|
||||
self.mainwindow.liveController.replaceServiceManagerItem(item)
|
||||
else:
|
||||
item.render()
|
||||
# nothing selected for dnd
|
||||
if self.dropPosition == 0:
|
||||
if isinstance(item, list):
|
||||
|
Loading…
Reference in New Issue
Block a user