forked from openlp/openlp
Unnecessary line breaks
This commit is contained in:
parent
943dcf1ffc
commit
a97cd1bb9b
@ -583,8 +583,7 @@ class ThemeXML(object):
|
|||||||
self.background_end_color,
|
self.background_end_color,
|
||||||
self.background_direction)
|
self.background_direction)
|
||||||
else:
|
else:
|
||||||
filename = \
|
filename = os.path.split(self.background_filename)[1]
|
||||||
os.path.split(self.background_filename)[1]
|
|
||||||
self.add_background_image(filename)
|
self.add_background_image(filename)
|
||||||
self.add_font(self.font_main_name,
|
self.add_font(self.font_main_name,
|
||||||
self.font_main_color,
|
self.font_main_color,
|
||||||
|
@ -326,8 +326,7 @@ class MainDisplay(DisplayWidget):
|
|||||||
vol = float(volume)/float(10)
|
vol = float(volume)/float(10)
|
||||||
if isBackground or not self.usePhonon:
|
if isBackground or not self.usePhonon:
|
||||||
js = u'show_video("init", "%s", %s, true); show_video("play");' % \
|
js = u'show_video("init", "%s", %s, true); show_video("play");' % \
|
||||||
(videoPath.replace(u'\\', u'\\\\'), \
|
(videoPath.replace(u'\\', u'\\\\'), str(vol))
|
||||||
str(vol))
|
|
||||||
self.frame.evaluateJavaScript(js)
|
self.frame.evaluateJavaScript(js)
|
||||||
else:
|
else:
|
||||||
self.phononActive = True
|
self.phononActive = True
|
||||||
@ -398,8 +397,7 @@ class MainDisplay(DisplayWidget):
|
|||||||
if u'video' in self.override:
|
if u'video' in self.override:
|
||||||
Receiver.send_message(u'video_background_replaced')
|
Receiver.send_message(u'video_background_replaced')
|
||||||
self.override = {}
|
self.override = {}
|
||||||
elif self.override[u'theme'] != \
|
elif self.override[u'theme'] != serviceItem.themedata.theme_name:
|
||||||
serviceItem.themedata.theme_name:
|
|
||||||
Receiver.send_message(u'live_theme_changed')
|
Receiver.send_message(u'live_theme_changed')
|
||||||
self.override = {}
|
self.override = {}
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user