Fix ProgressAndAsync tutorial

This commit is contained in:
vczh
2026-03-24 12:45:19 -07:00
parent 17636c02d1
commit fc04573686
2 changed files with 4 additions and 4 deletions
@@ -72,8 +72,8 @@
progressBar.Position = progress;
}, -1);
});
textResult.Text = text;
textResult.SetCaret({row:0 column:0}, {row:0 column:0});
textResult.LoadTextAndClearUndoRedo(text);
textResult.SetFocused();
}
]]>
</ev.Clicked-eval>
@@ -241,8 +241,8 @@ Closures
throw ::vl::Exception(::vl::__vwsn::This(::vl::__vwsn::This(__vwsn_co_result_.Obj())->GetFailure().Obj())->GetMessage());
}
(__vwsn_co0_text = ::demo::IStringAsync::CastResult(::vl::__vwsn::This(__vwsn_co_result_.Obj())->GetResult()));
::vl::__vwsn::This(__vwsnthis_0->textResult)->SetText(__vwsn_co0_text);
::vl::__vwsn::This(__vwsnthis_0->textResult)->SetCaret([&](){ ::vl::presentation::TextPos __vwsn_temp__; __vwsn_temp__.row = static_cast<::vl::vint>(0); __vwsn_temp__.column = static_cast<::vl::vint>(0); return __vwsn_temp__; }(), [&](){ ::vl::presentation::TextPos __vwsn_temp__; __vwsn_temp__.row = static_cast<::vl::vint>(0); __vwsn_temp__.column = static_cast<::vl::vint>(0); return __vwsn_temp__; }());
::vl::__vwsn::This(__vwsnthis_0->textResult)->LoadTextAndClearUndoRedo(__vwsn_co0_text);
::vl::__vwsn::This(__vwsnthis_0->textResult)->SetFocused();
this->SetStatus(::vl::reflection::description::CoroutineStatus::Stopped);
return;
}