Remember expanded paths in GuiConfig
This commit is contained in:
parent
f45ab70b9f
commit
f94d60c837
@ -82,9 +82,17 @@ class ConfigDialog(QtGui.QDialog):
|
|||||||
settings.endGroup()
|
settings.endGroup()
|
||||||
foundpath = ""
|
foundpath = ""
|
||||||
|
|
||||||
if playerpath != None and playerpath != "" and os.path.isfile(playerpath):
|
if playerpath != None and playerpath != "":
|
||||||
foundpath = playerpath
|
if not os.path.isfile(playerpath):
|
||||||
self.executablepathCombobox.addItem(foundpath)
|
from syncplay.players.playerFactory import PlayerFactory
|
||||||
|
self._playerFactory = PlayerFactory()
|
||||||
|
expandedpath = self._playerFactory.getPlayerByPath(playerpath).getExpandedPath(playerpath)
|
||||||
|
if os.path.isfile(expandedpath):
|
||||||
|
playerpath = expandedpath
|
||||||
|
|
||||||
|
if os.path.isfile(playerpath):
|
||||||
|
foundpath = playerpath
|
||||||
|
self.executablepathCombobox.addItem(foundpath)
|
||||||
|
|
||||||
for path in playerpathlist:
|
for path in playerpathlist:
|
||||||
if(os.path.isfile(path) and os.path.normcase(path) != os.path.normcase(foundpath)):
|
if(os.path.isfile(path) and os.path.normcase(path) != os.path.normcase(foundpath)):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user