Skip to content

Fix Lite SnoozeBalloon dismiss/snooze buttons being no-ops#993

Merged
erikdarlingdata merged 1 commit into
devfrom
feature/992-lite-snoozeballoon-close
May 26, 2026
Merged

Fix Lite SnoozeBalloon dismiss/snooze buttons being no-ops#993
erikdarlingdata merged 1 commit into
devfrom
feature/992-lite-snoozeballoon-close

Conversation

@erikdarlingdata
Copy link
Copy Markdown
Owner

Closes #992

Summary

  • SnoozeBalloon.CloseBalloon() was raising TaskbarIcon.BalloonClosingEvent expecting the library to close the popup. Hardcodet only emits that event during its own close path; it has no listener that converts a balloon-initiated raise into a close. So user dismiss/snooze clicks did nothing.
  • Pass an Action closePopup to SnoozeBalloon that invokes TaskbarIcon.CloseBalloon() directly — the same method used internally for timeout and replacement closes.

Test plan

  • Reproduced on dev: HammerDB driving sql2025 triggered Blocking Detected / Deadlocks Detected popups; clicking Dismiss did nothing across 400+ clicks on the same popup.
  • Built fix locally; same load, single Dismiss click closes the popup cleanly.
  • Verify Snooze 15m / 1h / 4h buttons also close the popup AND register a mute rule (path is shared with Dismiss via CloseBalloon()).

🤖 Generated with Claude Code

SnoozeBalloon.CloseBalloon() raised TaskbarIcon.BalloonClosingEvent and
assumed the library would tear the popup down. Hardcodet emits that event
when it closes a popup; it has no listener that translates a
balloon-initiated raise back into a close, so user-initiated dismiss did
nothing and the popup persisted until the next refresh tick replaced it.

Pass an Action closePopup callback that invokes TaskbarIcon.CloseBalloon()
directly, the same method the library uses for timeout-based and
replacement-based closes.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@erikdarlingdata erikdarlingdata merged commit b81e959 into dev May 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant