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:
Toast 2025-05-28 17:04:17 +02:00
parent f3650c10a9
commit 999cf68655

View file

@ -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