mirror of
https://github.com/ckaczor/wpf-notifyicon.git
synced 2026-01-20 01:35:39 -05:00
FIX Fixed potential event propagation before event listeners where registered.
This commit is contained in:
@@ -142,6 +142,9 @@ namespace Hardcodet.Wpf.TaskbarNotification
|
||||
messageSink.ChangeToolTipStateRequest += OnToolTipChange;
|
||||
messageSink.BalloonToolTipChanged += OnBalloonToolTipChanged;
|
||||
|
||||
//start listening once we registered to events
|
||||
if(!Util.IsDesignMode) messageSink.Listen();
|
||||
|
||||
//init single click / balloon timers
|
||||
singleClickTimer = new Timer(DoSingleClickAction);
|
||||
balloonCloseTimer = new Timer(CloseBalloonCallback);
|
||||
|
||||
Reference in New Issue
Block a user