1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-04-09 06:15:49 +02:00

Reset notification mouse hook variable when disposing

This commit is contained in:
chylex 2016-07-11 15:55:18 +02:00 committed by GitHub
parent af9a503f3c
commit 2f2e2b82b8

View File

@ -28,8 +28,8 @@ sealed partial class FormNotification : Form{
private readonly bool autoHide;
private int timeLeft, totalTime;
private readonly IntPtr mouseHook;
private readonly NativeMethods.HookProc mouseHookDelegate;
private IntPtr mouseHook;
private bool? prevDisplayTimer;
private int? prevFontSize;
@ -203,6 +203,7 @@ private void FormNotification_Disposed(object sender, EventArgs e){
if (mouseHook != IntPtr.Zero){
NativeMethods.UnhookWindowsHookEx(mouseHook);
mouseHook = IntPtr.Zero;
}
}