Skip to content

Commit

Permalink
Fix "clear log" function
Browse files Browse the repository at this point in the history
  • Loading branch information
celeron533 committed Jan 30, 2020
1 parent e15cfac commit 6922ba1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion shadowsocks-csharp/View/LogForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,11 @@ private void LogForm_Shown(object sender, EventArgs e)
#region Clean up the content in LogMessageTextBox.
private void DoClearLogs()
{
//logger.Clear();
try
{
File.Delete(filename);
}
catch { }
lastOffset = 0;
LogMessageTextBox.Clear();
}
Expand Down

0 comments on commit 6922ba1

Please sign in to comment.