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"]
|
||||
|
||||
@property
|
||||
def enabled(self) -> str:
|
||||
return self.__enabled
|
||||
def enabled(self) -> bool:
|
||||
return True if self.__enabled == "true" else False
|
||||
|
||||
def __init__(self, path: str) -> None:
|
||||
self.__path = path
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue