Skip to content

Commit

Permalink
fix: popup manager not working on preexisting alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
adamk33n3r committed Dec 31, 2024
1 parent f5f7bcf commit 69f42f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,15 @@
public class Popup extends MessageNotification {
private Color textColor = DEFAULT_NOTIFICATION_TEXT_COLOR;

private transient PopupManager popupManager;

@Inject
public Popup(WatchdogConfig config) {
super(config);
this.popupManager = WatchdogPlugin.getInstance().getPopupManager();
this.setDefaults();
}

@Override
protected void fireImpl(String[] triggerValues) {
this.popupManager.getPopupQueue().offer(new PopupData(
WatchdogPlugin.getInstance().getPopupManager().getPopupQueue().offer(new PopupData(
this.getAlert().getName(),
this.getMessage(),
this.getTextColor()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Mon Dec 23 05:05:15 EST 2024
VERSION_BUILD=4756
#Tue Dec 31 00:52:47 EST 2024
VERSION_BUILD=4760
VERSION_PHASE=release
VERSION_MAJOR=3
VERSION_MINOR=6
VERSION_MINOR=7
VERSION_PATCH=0

0 comments on commit 69f42f1

Please sign in to comment.