feat: 更新控件及表格功能
This commit is contained in:
@@ -15,6 +15,8 @@ namespace Lskj.Control
|
||||
/// </summary>
|
||||
internal sealed class CefBrowserLifetimeCoordinator
|
||||
{
|
||||
// CEF 生命周期诊断默认关闭,避免正常创建和销毁浏览器时持续写入日志。
|
||||
internal static readonly bool LifecycleTracingEnabled = false;
|
||||
private static readonly CefBrowserSettings _sharedBrowserSettings =
|
||||
new CefBrowserSettings();
|
||||
private readonly object _hostWindowSyncRoot = new object();
|
||||
@@ -623,6 +625,9 @@ namespace Lskj.Control
|
||||
|
||||
private void TraceOwnerAction(string action)
|
||||
{
|
||||
if (!LifecycleTracingEnabled)
|
||||
return;
|
||||
|
||||
string stack = Environment.StackTrace
|
||||
.Replace("\r", string.Empty)
|
||||
.Replace("\n", " | ");
|
||||
@@ -637,6 +642,9 @@ namespace Lskj.Control
|
||||
CefBrowser browser,
|
||||
CefBrowser currentBrowser)
|
||||
{
|
||||
if (!LifecycleTracingEnabled)
|
||||
return;
|
||||
|
||||
try
|
||||
{
|
||||
LogHelper.Instance.WriteLog(
|
||||
@@ -1079,6 +1087,9 @@ namespace Lskj.Control
|
||||
bool closed,
|
||||
int timeoutMilliseconds)
|
||||
{
|
||||
if (!CefBrowserLifetimeCoordinator.LifecycleTracingEnabled)
|
||||
return;
|
||||
|
||||
try
|
||||
{
|
||||
int remaining;
|
||||
|
||||
Reference in New Issue
Block a user