mirror of https://github.com/Syncplay/syncplay
Don't show GuiConfig for EXE console
This commit is contained in:
parent
a5bbd1bdc7
commit
cf3d17edbb
|
@ -408,7 +408,7 @@ class ConfigurationGetter(object):
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
def _promptForMissingArguments(self, error=None):
|
def _promptForMissingArguments(self, error=None):
|
||||||
if self._config['noGui']:
|
if self._config['noGui'] or utils.isWindowsConsole():
|
||||||
if error:
|
if error:
|
||||||
print("{}!".format(error))
|
print("{}!".format(error))
|
||||||
print(getMessage("missing-arguments-error"))
|
print(getMessage("missing-arguments-error"))
|
||||||
|
@ -550,7 +550,7 @@ class ConfigurationGetter(object):
|
||||||
# Arguments not validated yet - booleans are still text values
|
# Arguments not validated yet - booleans are still text values
|
||||||
if self._config['language']:
|
if self._config['language']:
|
||||||
setLanguage(self._config['language'])
|
setLanguage(self._config['language'])
|
||||||
if (self._config['forceGuiPrompt'] == "True" or not self._config['file']) and not self._config['noGui']:
|
if (self._config['forceGuiPrompt'] == "True" or not self._config['file']) and not self._config['noGui'] and not utils.isWindowsConsole():
|
||||||
self._forceGuiPrompt()
|
self._forceGuiPrompt()
|
||||||
self._checkConfig()
|
self._checkConfig()
|
||||||
self._saveConfig(iniPath)
|
self._saveConfig(iniPath)
|
||||||
|
|
Loading…
Reference in New Issue