mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-03 06:56:44 +01:00
Fixed new configs
This commit is contained in:
parent
29ce34b09b
commit
c9662bbf5d
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue