From 413380675eaecb9feccf5c3cca78e5ae319bc7b4 Mon Sep 17 00:00:00 2001 From: Gatsik <74517072+Gatsik@users.noreply.github.com> Date: Sat, 21 Sep 2024 08:33:26 +0300 Subject: [PATCH] Fix some notifications not being shown --- src/notifications/__init__.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/notifications/__init__.py b/src/notifications/__init__.py index 24b4602da..75add303f 100644 --- a/src/notifications/__init__.py +++ b/src/notifications/__init__.py @@ -116,11 +116,12 @@ def gameExit(self): self.checkEvent() def is_enabled(self, event_type: str) -> bool: - if not self.settings.enabled or self.disabledStartup: + if not self.settings.enabled: return False - if not self.settings.popupEnabled(event_type): - return False + if event_type in self.settings.hooks: + if self.disabledStartup or not self.settings.popupEnabled(event_type): + return False if self.game_running: return (