enable visual styles before alert()

This commit is contained in:
clowwindy
2014-11-15 03:21:39 +08:00
parent a63ba03a2f
commit ca0774ddb3
+3 -2
View File
@@ -21,6 +21,9 @@ namespace Shadowsocks
{
using (Mutex mutex = new Mutex(false, "Global\\" + "71981632-A427-497F-AB91-241CD227EC1F"))
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
if (!mutex.WaitOne(0, false))
{
Process[] oldProcesses = Process.GetProcessesByName("Shadowsocks");
@@ -35,8 +38,6 @@ namespace Shadowsocks
#if !DEBUG
Logging.OpenLogFile();
#endif
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
ShadowsocksController controller = new ShadowsocksController();
MenuViewController viewController = new MenuViewController(controller);