Fixed new configs

This commit is contained in:
Dimitris Zlatanidis 2023-03-06 23:41:12 +02:00
parent 29ce34b09b
commit c9662bbf5d

View file

@ -67,7 +67,7 @@ class FormConfigs(Configs):
""" Check for true of false values. """
for key, value in zip(configs['CONFIGS'].keys(), tags):
if (key in ['COLORS', 'DIALOG', 'SILENT_MODE', 'ASCII_CHARACTERS', 'PONCE_REPO'] and
if (key in ['COLORS', 'DIALOG', 'SILENT_MODE', 'ASCII_CHARACTERS', 'PONCE_REPO', 'ASK_QUESTION'] and
value not in ['true', 'false']):
self.dialogbox.msgbox(f"\nError value for {key}. It must be 'true' or 'false'\n", height=7, width=60)
return False
@ -96,7 +96,7 @@ class FormConfigs(Configs):
line = f' {key} = "{value}"\n'
if line.lstrip().startswith(('COLORS =', 'DIALOG =', 'SILENT_MODE =',
'ASCII_CHARACTERS =', 'PONCE_REPO =')):
'ASCII_CHARACTERS =', 'PONCE_REPO =', 'ASK_QUESTION =')):
line = line.replace('"', '')
patch_toml.write(line)