diff --git a/shadowsocks-csharp/View/LogForm.cs b/shadowsocks-csharp/View/LogForm.cs index 87dffa4b..ec5751a7 100644 --- a/shadowsocks-csharp/View/LogForm.cs +++ b/shadowsocks-csharp/View/LogForm.cs @@ -308,7 +308,11 @@ namespace Shadowsocks.View #region Clean up the content in LogMessageTextBox. private void DoClearLogs() { - //logger.Clear(); + try + { + File.Delete(filename); + } + catch { } lastOffset = 0; LogMessageTextBox.Clear(); }