Skip to content

Commit

Permalink
Don't show GuiConfig for EXE console
Browse files Browse the repository at this point in the history
  • Loading branch information
Et0h authored Sep 17, 2023
1 parent a5bbd1b commit cf3d17e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions syncplay/ui/ConfigurationGetter.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ def _checkConfig(self):
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"))
Expand Down Expand Up @@ -550,7 +550,7 @@ def getConfiguration(self):
# 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)
Expand Down

0 comments on commit cf3d17e

Please sign in to comment.