Mod: fix mod enabling/disabling multiple times
I forgot to update the enabled variable, so this would only work the first time it gets called
This commit is contained in:
parent
f3650c10a9
commit
999cf68655
1 changed files with 1 additions and 0 deletions
|
|
@ -49,6 +49,7 @@ class Mod:
|
|||
with config_toml.open("w") as config_file:
|
||||
self.__config["enabled"] = value
|
||||
tomlkit.dump(self.__config, config_file)
|
||||
self.__enabled = value
|
||||
|
||||
def __init__(self, path: Path) -> None:
|
||||
self.__path = path
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue