diff --git a/slpkg/form_configs.py b/slpkg/form_configs.py index 81c3e944..c98309e9 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_file() + self.read_config() self.dialog.textbox(str(self.config_file), 40, 60) self.edit() @@ -70,14 +70,14 @@ class FormConfigs: return False return True - def read_file(self): + def read_config(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_file() + self.read_config() with open(self.config_file, 'w') as patch_toml: for line in self.orig_configs: for key, value in zip(configs['configs'].keys(), tags):