diff --git a/slpkg/form_configs.py b/slpkg/form_configs.py index c98309e9..07b40210 100644 --- a/slpkg/form_configs.py +++ b/slpkg/form_configs.py @@ -58,7 +58,7 @@ class FormConfigs: def help(self): """ Load the configuration file on a text box. """ - self.read_config() + self.read_configs() self.dialog.textbox(str(self.config_file), 40, 60) self.edit() @@ -70,14 +70,14 @@ class FormConfigs: return False return True - def read_config(self): + def read_configs(self): """ Read the original config file. """ with open(self.config_file, 'r') as toml_file: self.orig_configs = toml_file.readlines() def write_file(self, configs: dict, tags: list): """ Write the new values to the config file. """ - self.read_config() + self.read_configs() with open(self.config_file, 'w') as patch_toml: for line in self.orig_configs: for key, value in zip(configs['configs'].keys(), tags):