Browse Source

Misc

Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
tags/3.3.4
Syrone Wong 8 years ago
parent
commit
9c438ee745
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      shadowsocks-csharp/Program.cs

+ 1
- 1
shadowsocks-csharp/Program.cs View File

@@ -43,7 +43,6 @@ namespace Shadowsocks
SystemEvents.PowerModeChanged += SystemEvents_PowerModeChanged; SystemEvents.PowerModeChanged += SystemEvents_PowerModeChanged;
Application.EnableVisualStyles(); Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false); Application.SetCompatibleTextRenderingDefault(false);
Application.ApplicationExit += (sender, args) => HotKeys.Destroy();
if (!mutex.WaitOne(0, false)) if (!mutex.WaitOne(0, false))
{ {
@@ -150,6 +149,7 @@ namespace Shadowsocks
private static void Application_ApplicationExit(object sender, EventArgs e) private static void Application_ApplicationExit(object sender, EventArgs e)
{ {
HotKeys.Destroy();
if (_controller != null) if (_controller != null)
{ {
_controller.Stop(); _controller.Stop();


Loading…
Cancel
Save