forked from openlp/openlp
Fix up presentations so they work again
This commit is contained in:
parent
d28498611d
commit
591dc07354
@ -231,14 +231,17 @@ class MessageListener(object):
|
|||||||
controller.addHandler(self.controllers[self.handler], file, isBlank)
|
controller.addHandler(self.controllers[self.handler], file, isBlank)
|
||||||
|
|
||||||
def decode_message(self, message):
|
def decode_message(self, message):
|
||||||
return message[1], message[0]
|
if len(message) == 3:
|
||||||
|
return message[1], message[0], message[2]
|
||||||
|
else:
|
||||||
|
return message[1], message[0]
|
||||||
|
|
||||||
def slide(self, message):
|
def slide(self, message):
|
||||||
isLive, item = self.decode_message(message)
|
isLive, item, slide = self.decode_message(message)
|
||||||
if isLive:
|
if isLive:
|
||||||
self.liveHandler.slide(slide, live)
|
self.liveHandler.slide(slide, isLive)
|
||||||
else:
|
else:
|
||||||
self.previewHandler.slide(slide, live)
|
self.previewHandler.slide(slide, isLive)
|
||||||
|
|
||||||
def first(self, message):
|
def first(self, message):
|
||||||
isLive, item = self.decode_message(message)
|
isLive, item = self.decode_message(message)
|
||||||
|
Loading…
Reference in New Issue
Block a user