Mod: return enabled as a bool instead of str
This commit is contained in:
parent
8349e4f340
commit
3a8406cb19
1 changed files with 2 additions and 2 deletions
|
|
@ -27,8 +27,8 @@ class Mod:
|
||||||
return self.__config["author"]
|
return self.__config["author"]
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def enabled(self) -> str:
|
def enabled(self) -> bool:
|
||||||
return self.__enabled
|
return True if self.__enabled == "true" else False
|
||||||
|
|
||||||
def __init__(self, path: str) -> None:
|
def __init__(self, path: str) -> None:
|
||||||
self.__path = path
|
self.__path = path
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue