优化日志事件接收方法, 修复启动控制器时没有清除上次启动的日志

This commit is contained in:
ChsBuffer
2020-07-30 21:31:25 +08:00
parent 4e5bdab6b8
commit 5495b94513
2 changed files with 15 additions and 27 deletions

View File

@@ -86,6 +86,7 @@ namespace Netch.Controllers
}
Global.MainForm.StatusText(i18N.Translate("Starting ", pEncryptedProxyController.Name));
pEncryptedProxyController.ClearLog();
result = pEncryptedProxyController.Start(server, mode);
}
@@ -112,6 +113,7 @@ namespace Netch.Controllers
if (pModeController != null)
{
Global.MainForm.StatusText(i18N.Translate("Starting ", pModeController.Name));
pModeController.ClearLog();
result = pModeController.Start(server, mode);
}