From 411b73d971de285862c20e5f7b76c3c3f1a087df Mon Sep 17 00:00:00 2001 From: Kang Yu Date: Sat, 29 Jun 2024 21:36:37 -0700 Subject: [PATCH] minor code refactor --- Ninjacrab.PersistentWindows.Solution/SystrayShell/HotKey.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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",