fix adding files with queue command in GUI mode
This commit is contained in:
parent
9d592bf5d9
commit
915ab9806b
@ -1881,7 +1881,7 @@ class MainWindow(QtWidgets.QMainWindow):
|
||||
self.playlist.setPlaylistIndexFilename(filename)
|
||||
|
||||
def addFileToPlaylist(self, filePath, index=-1):
|
||||
if os.path.isfile(filePath):
|
||||
if not isURL:
|
||||
self.removePlaylistNote()
|
||||
filename = os.path.basename(filePath)
|
||||
if self.noPlaylistDuplicates(filename):
|
||||
@ -1890,7 +1890,7 @@ class MainWindow(QtWidgets.QMainWindow):
|
||||
else:
|
||||
self.playlist.insertItem(index, filename)
|
||||
self._syncplayClient.fileSwitch.notifyUserIfFileNotInMediaDirectory(filename, filePath)
|
||||
elif isURL(filePath):
|
||||
else:
|
||||
self.removePlaylistNote()
|
||||
if self.noPlaylistDuplicates(filePath):
|
||||
if self.playlist == -1 or index == -1:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user