Update release

This commit is contained in:
vczh
2026-03-27 21:45:56 -07:00
parent fc04573686
commit e0eac29f90
17 changed files with 3108 additions and 1550 deletions
+2 -20
View File
@@ -541,26 +541,7 @@ UnitTestSnapshotViewerAppWindow
{
labelLoading->SetVisible(true);
scRendering->SetVisible(false);
struct LoadingContext
{
vint version;
Ptr<EventHandler> handler;
};
auto context = Ptr(new LoadingContext);
context->version = ++loadingFrameVersion;
context->handler = frame->DomChanged.Add([=, this]()
{
if (context->version == loadingFrameVersion)
{
loadDom();
GetApplication()->InvokeInMainThread(GetApplication()->GetMainWindow(), [=]()
{
frame->DomChanged.Remove(context->handler);
context->handler = {};
});
}
});
__vwsn::EventAttachOnce(frame->DomChanged, loadDom, loadingFrameVersion);
}
}
}
@@ -677,6 +658,7 @@ UnitTestSnapshotViewerAppWindow
UnitTestSnapshotViewerAppWindow::UnitTestSnapshotViewerAppWindow(Ptr<UnitTestSnapshotViewerViewModel> viewModel)
: UnitTestSnapshotViewerWindow(viewModel)
, loadingFrameVersion(Ptr(new reflection::description::Versioning))
{
textListFrames->SelectionChanged.AttachMethod(this, &UnitTestSnapshotViewerAppWindow::textListFrames_SelectionChanged);
treeViewDom->SelectionChanged.AttachMethod(this, &UnitTestSnapshotViewerAppWindow::treeViewDom_SelectionChanged);