Skip to content

Commit 4133806

Browse files
committed
Fix some notifications not being shown
1 parent da4a07c commit 4133806

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/notifications/__init__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,12 @@ def gameExit(self):
116116
self.checkEvent()
117117

118118
def is_enabled(self, event_type: str) -> bool:
119-
if not self.settings.enabled or self.disabledStartup:
119+
if not self.settings.enabled:
120120
return False
121121

122-
if not self.settings.popupEnabled(event_type):
123-
return False
122+
if event_type in self.settings.hooks:
123+
if self.disabledStartup or not self.settings.popupEnabled(event_type):
124+
return False
124125

125126
if self.game_running:
126127
return (

0 commit comments

Comments
 (0)