This commit is contained in:
felinae98
2022-03-30 20:00:49 +08:00
parent cf35432757
commit e61f9ea8fd
6 changed files with 52 additions and 60 deletions
@@ -52,6 +52,9 @@ class Config(metaclass=Singleton):
migrate_version = 2
def __init__(self):
self._do_init()
def _do_init(self):
path = get_config_path()
if Path(path).exists():
self.available = True