mirror of
https://github.com/Syncplay/syncplay
synced 2025-02-19 12:36:51 +00:00
Fix fileless arg prepending
This commit is contained in:
parent
35ba80fc49
commit
97a499a34a
@ -284,6 +284,9 @@ class ConfigurationGetter(object):
|
||||
self._parseConfigFile(iniPath)
|
||||
args = self._argparser.parse_args()
|
||||
self._overrideConfigWithArgs(args)
|
||||
if(self._config['file'] and self._config['file'][:2] == "--"):
|
||||
self._config['playerArgs'].insert(0, self._config['file'])
|
||||
self._config['file'] = None
|
||||
# Arguments not validated yet - booleans are still text values
|
||||
if(self._config['forceGuiPrompt'] == "True" or not self._config['file']):
|
||||
self._forceGuiPrompt()
|
||||
|
Loading…
Reference in New Issue
Block a user