mirror of https://github.com/Syncplay/syncplay
MPC: Only reset position if file is playing (#663)
This commit is contained in:
parent
686de33bd3
commit
c7fbf7ab6e
|
@ -407,7 +407,7 @@ class MPCHCAPIPlayer(BasePlayer):
|
|||
|
||||
def openFile(self, filePath, resetPosition=False):
|
||||
self._mpcApi.openFile(filePath)
|
||||
if resetPosition:
|
||||
if resetPosition and self._mpcApi.filePlaying:
|
||||
self.setPosition(0, resetPosition=True)
|
||||
|
||||
def displayMessage(
|
||||
|
|
Loading…
Reference in New Issue