MPC: Only reset position if file is playing (#663)

This commit is contained in:
Et0h 2024-02-07 19:18:53 +00:00
parent 686de33bd3
commit c7fbf7ab6e
1 changed files with 1 additions and 1 deletions

View File

@ -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(