From cf3d17edbbb06e3b4e023b50bd0a658f1bd13037 Mon Sep 17 00:00:00 2001 From: Etoh Date: Sun, 17 Sep 2023 15:18:16 +0100 Subject: [PATCH] Don't show GuiConfig for EXE console --- syncplay/ui/ConfigurationGetter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syncplay/ui/ConfigurationGetter.py b/syncplay/ui/ConfigurationGetter.py index 2252592..7370201 100755 --- a/syncplay/ui/ConfigurationGetter.py +++ b/syncplay/ui/ConfigurationGetter.py @@ -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)