Don't show GuiConfig for EXE console

This commit is contained in:
Etoh 2023-09-17 15:18:16 +01:00 committed by GitHub
parent a5bbd1bdc7
commit cf3d17edbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -408,7 +408,7 @@ class ConfigurationGetter(object):
sys.exit()
def _promptForMissingArguments(self, error=None):
if self._config['noGui']:
if self._config['noGui'] or utils.isWindowsConsole():
if error:
print("{}!".format(error))
print(getMessage("missing-arguments-error"))
@ -550,7 +550,7 @@ class ConfigurationGetter(object):
# Arguments not validated yet - booleans are still text values
if 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._checkConfig()
self._saveConfig(iniPath)