forked from openlp/openlp
small fixes
This commit is contained in:
parent
ed66c5cf34
commit
25ed0ab4d7
@ -108,8 +108,7 @@ class ItemCapabilities(object):
|
||||
The capability to ignore the do not play if display blank flag.
|
||||
|
||||
``CanEditTitle``
|
||||
The capability to allow the ServiceManager to allow the title of the item to be
|
||||
edited
|
||||
The capability to edit the title of the item
|
||||
|
||||
"""
|
||||
CanPreview = 1
|
||||
|
@ -196,6 +196,7 @@ class MediaMediaItem(MediaManagerItem):
|
||||
return False
|
||||
service_item.add_capability(ItemCapabilities.CanAutoStartForLive)
|
||||
service_item.add_capability(ItemCapabilities.RequiresMedia)
|
||||
service_item.add_capability(ItemCapabilities.CanEditTitle)
|
||||
if Settings().value(self.settings_section + u'/media auto start') == QtCore.Qt.Checked:
|
||||
service_item.will_auto_start = True
|
||||
# force a non-existent theme
|
||||
|
@ -246,6 +246,7 @@ class PresentationMediaItem(MediaManagerItem):
|
||||
return False
|
||||
service_item.processor = self.display_type_combo_box.currentText()
|
||||
service_item.add_capability(ItemCapabilities.ProvidesOwnDisplay)
|
||||
service_item.add_capability(ItemCapabilities.CanEditTitle)
|
||||
if not self.display_type_combo_box.currentText():
|
||||
return False
|
||||
for bitem in items:
|
||||
|
Loading…
Reference in New Issue
Block a user