diff --git a/Ninjacrab.PersistentWindows.Solution/SystrayShell/HotKey.cs b/Ninjacrab.PersistentWindows.Solution/SystrayShell/HotKey.cs index 8713f8e..5363fe0 100644 --- a/Ninjacrab.PersistentWindows.Solution/SystrayShell/HotKey.cs +++ b/Ninjacrab.PersistentWindows.Solution/SystrayShell/HotKey.cs @@ -17,9 +17,8 @@ namespace PersistentWindows.SystrayShell { messageLoop = new Thread(() => { - HotKeyForm hkf = new HotKeyForm(hotkey); hkwin = new HotKeyWindow(hotkey); - Application.Run(hkf); + Application.Run(new HotKeyForm(hotkey)); }) { Name = "MessageLoopThread",