diff --git a/Ninjacrab.PersistentWindows.Solution/SystrayShell/HotKey.cs b/Ninjacrab.PersistentWindows.Solution/SystrayShell/HotKey.cs index 4c38865..fd34448 100644 --- a/Ninjacrab.PersistentWindows.Solution/SystrayShell/HotKey.cs +++ b/Ninjacrab.PersistentWindows.Solution/SystrayShell/HotKey.cs @@ -43,6 +43,8 @@ namespace PersistentWindows.SystrayShell User32.KeyModifier modifier = (User32.KeyModifier)((int)m.LParam & 0xFFFF); // The modifier of the hotkey that was pressed. int id = m.WParam.ToInt32(); // The id of the hotkey that was pressed. + Program.ShowRestoreTip(); + Program.HideRestoreTip(); //show icon hkwin.HotKeyPressed(); return; } diff --git a/Ninjacrab.PersistentWindows.Solution/SystrayShell/Program.cs b/Ninjacrab.PersistentWindows.Solution/SystrayShell/Program.cs index 2595038..b54d925 100644 --- a/Ninjacrab.PersistentWindows.Solution/SystrayShell/Program.cs +++ b/Ninjacrab.PersistentWindows.Solution/SystrayShell/Program.cs @@ -388,7 +388,7 @@ namespace PersistentWindows.SystrayShell return false; } - static void ShowRestoreTip() + public static void ShowRestoreTip() { if (systrayForm.contextMenuStripSysTray.InvokeRequired) systrayForm.contextMenuStripSysTray.BeginInvoke((Action)delegate () @@ -414,7 +414,7 @@ namespace PersistentWindows.SystrayShell } } - static void HideRestoreTip() + public static void HideRestoreTip() { if (systrayForm.contextMenuStripSysTray.InvokeRequired) systrayForm.contextMenuStripSysTray.BeginInvoke((Action)delegate ()