Browse Source

add log switch and modify detector

Add an option to select whether to open log or not.
Add a detector to check whether the server setting changed.
pull/45/head
wzxjohn 10 years ago
parent
commit
e812d0adc4
3 changed files with 8 additions and 3 deletions
  1. +1
    -1
      shadowsocks-csharp/Controller/ShadowsocksController.cs
  2. +2
    -2
      shadowsocks-csharp/Program.cs
  3. +5
    -0
      shadowsocks-csharp/View/ConfigForm.cs

+ 1
- 1
shadowsocks-csharp/Controller/ShadowsocksController.cs View File

@@ -52,7 +52,7 @@ namespace Shadowsocks.Controller
UpdateSystemProxy();
}
public Server GetCurrentServer()
{
return _config.GetCurrentServer();


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

@@ -46,8 +46,8 @@ namespace Shadowsocks
Console.WriteLine(e.ToString());
}
LoadLibrary(dllPath);
Logging.OpenLogFile();
Logging.OpenLogFile();
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
ShadowsocksController controller = new ShadowsocksController();


+ 5
- 0
shadowsocks-csharp/View/ConfigForm.cs View File

@@ -373,5 +373,10 @@ namespace Shadowsocks.View
qrCodeForm.Icon = this.Icon;
qrCodeForm.Show();
}
private void enableLogBox_CheckedChanged(object sender, EventArgs e)
{
MessageBox.Show("This option only works on next startup.");
}
}
}

Loading…
Cancel
Save