diff --git a/slpkg/form_configs.py b/slpkg/form_configs.py index 15b54e78..4afecafe 100644 --- a/slpkg/form_configs.py +++ b/slpkg/form_configs.py @@ -47,14 +47,15 @@ class FormConfigs(Configs): os.system('clear') + if code == 'help': + self.help() + check: bool = self.check_configs(configs, tags) if code == 'ok' and check: self.write_file(configs, tags) elif not check: self.edit() - elif code == 'help': - self.help() def help(self) -> None: """ Load the configuration file on a text box. """ @@ -71,7 +72,7 @@ class FormConfigs(Configs): 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']: + 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) return False