We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da4a07c commit 4133806Copy full SHA for 4133806
1 file changed
src/notifications/__init__.py
@@ -116,11 +116,12 @@ def gameExit(self):
116
self.checkEvent()
117
118
def is_enabled(self, event_type: str) -> bool:
119
- if not self.settings.enabled or self.disabledStartup:
+ if not self.settings.enabled:
120
return False
121
122
- if not self.settings.popupEnabled(event_type):
123
- return False
+ if event_type in self.settings.hooks:
+ if self.disabledStartup or not self.settings.popupEnabled(event_type):
124
+ return False
125
126
if self.game_running:
127
return (
0 commit comments