mirror of
https://github.com/Syncplay/syncplay
synced 2025-03-01 01:10:25 +00:00
Remember expanded paths in GuiConfig (v2)
This commit is contained in:
parent
1f1ef4cf1b
commit
8402a65c84
@ -1,6 +1,7 @@
|
||||
from PySide import QtCore, QtGui
|
||||
from PySide.QtCore import QSettings, Qt, QCoreApplication
|
||||
from PySide.QtGui import QApplication, QLineEdit, QCursor, QLabel, QCheckBox, QDesktopServices, QIcon
|
||||
from syncplay.players.playerFactory import PlayerFactory
|
||||
|
||||
import os
|
||||
import sys
|
||||
@ -82,7 +83,13 @@ class ConfigDialog(QtGui.QDialog):
|
||||
settings.endGroup()
|
||||
foundpath = ""
|
||||
|
||||
if playerpath != None and playerpath != "" and os.path.isfile(playerpath):
|
||||
if playerpath != None and playerpath != "":
|
||||
if not os.path.isfile(playerpath):
|
||||
expandedpath = PlayerFactory().getExpandedPlayerPathByPath(playerpath)
|
||||
if expandedpath != None and os.path.isfile(expandedpath):
|
||||
playerpath = expandedpath
|
||||
|
||||
if os.path.isfile(playerpath):
|
||||
foundpath = playerpath
|
||||
self.executablepathCombobox.addItem(foundpath)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user