Skip to content

Commit

Permalink
Fix some notifications not being shown
Browse files Browse the repository at this point in the history
  • Loading branch information
Gatsik committed Sep 21, 2024
1 parent da4a07c commit 4133806
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/notifications/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit 4133806

Please sign in to comment.