Only load notification targets when load is called
This commit is contained in:
parent
f7101f6a38
commit
3fe0a90a7a
1 changed files with 0 additions and 3 deletions
|
|
@ -141,9 +141,6 @@ class Notification(metaclass=Singleton):
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
if os.path.getsize(self._file) > 10:
|
|
||||||
self.load()
|
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_instance() -> "Notification":
|
def get_instance() -> "Notification":
|
||||||
if Notification._instance is None:
|
if Notification._instance is None:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue