Only sync on pause if SYNC_ON_PAUSE is True

This commit is contained in:
Etoh 2014-04-04 15:17:01 +01:00
parent 87849f6be8
commit 8866dab928

View File

@ -169,7 +169,8 @@ class SyncplayClient(object):
return madeChangeOnPlayer
def _serverPaused(self, setBy):
self.setPosition(self.getGlobalPosition())
if constants.SYNC_ON_PAUSE == True:
self.setPosition(self.getGlobalPosition())
self._player.setPaused(True)
madeChangeOnPlayer = True
self.ui.showMessage(getMessage("en", "pause-notification").format(setBy))
@ -607,5 +608,3 @@ class UiManager(object):
def drop(self):
self.__ui.drop()