mirror of
https://github.com/vczh-libraries/Release.git
synced 2026-05-23 15:55:56 +08:00
Fix ProgressAndAsync tutorial
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user