mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-29 10:26:12 +01:00
Updated for msgbox
This commit is contained in:
parent
85822942f9
commit
a4afa7deef
1 changed files with 5 additions and 3 deletions
|
@ -83,11 +83,13 @@ class FormConfigs(Configs):
|
|||
for key, value in zip(self.configs['CONFIGS'].keys(), tags):
|
||||
|
||||
if key in keys and value not in values:
|
||||
self.dialogbox.msgbox(f"\nError value for {key}. It must be 'true' or 'false'\n", height=7, width=60)
|
||||
self.dialogbox.msgbox(f"\nError: Value for '{key}', it must be 'true' or 'false.'\n",
|
||||
height=7, width=60)
|
||||
return False
|
||||
|
||||
if key in ['DOWNLOADER'] and value not in ['wget', 'curl', 'lftp']:
|
||||
self.dialogbox.msgbox(f"\nError value for {key}. It must be 'wget' or 'curl'\n", height=7, width=60)
|
||||
if key in ['DOWNLOADER'] and value not in ['wget2', 'wget', 'curl', 'lftp']:
|
||||
self.dialogbox.msgbox(f"\nError: Value for '{key}' not supported.\n",
|
||||
height=7, width=60)
|
||||
return False
|
||||
|
||||
return True
|
||||
|
|
Loading…
Reference in a new issue