Updated messages
This commit is contained in:
parent
4c78714e8e
commit
8fd929512b
@ -260,6 +260,8 @@ class SyncplayClientManager(object):
|
||||
reactor.run()
|
||||
|
||||
def stop(self, promptForAction = True):
|
||||
if(promptForAction):
|
||||
self.ui.promptFor("Press enter to exit\n")
|
||||
if not self.running:
|
||||
return
|
||||
self.running = False
|
||||
@ -270,8 +272,7 @@ class SyncplayClientManager(object):
|
||||
if self.player:
|
||||
self.player.drop()
|
||||
reactor.callLater(0.1, reactor.stop)
|
||||
if(promptForAction):
|
||||
self.ui.promptFor("Press enter to exit")
|
||||
|
||||
|
||||
def checkIfFileMatchesOthers(self):
|
||||
notMatchingList = self.users.getUsersWithNotMatchingFilenames()
|
||||
|
||||
@ -43,9 +43,11 @@ class MPCHCAPIPlayer(object):
|
||||
self.__syncplayClient.initPlayer(self)
|
||||
self.handleUpdatedFilename(self.mpc_api.fileplaying)
|
||||
self.ask_for_status()
|
||||
except:
|
||||
pass
|
||||
|
||||
except Exception, err:
|
||||
self.__syncplayClient.ui.showMessage(err.message)
|
||||
self.__syncplayClient.stop()
|
||||
|
||||
|
||||
def display_message(self, message):
|
||||
try:
|
||||
self.mpc_api.send_osd(message, 2, 3000)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user