diff --git a/Tutorial/GacUI_Controls/ProgressAndAsync/Main.cpp b/Tutorial/GacUI_Controls/ProgressAndAsync/Main.cpp index 33e5aa74..50912fa9 100644 --- a/Tutorial/GacUI_Controls/ProgressAndAsync/Main.cpp +++ b/Tutorial/GacUI_Controls/ProgressAndAsync/Main.cpp @@ -12,7 +12,7 @@ using namespace vl::stream; class ViewModel : public Object, public demo::IViewModel { public: - void BeginDownload(const ::vl::Func& progress, const ::vl::Func& callback)override + void BeginDownload(const ::vl::Func& progress, const ::vl::Func& callback)override { GetApplication()->InvokeAsync([=]() { @@ -36,7 +36,7 @@ public: progress(1); for (vint i = 2; i <= 10; i+=2) { - Sleep(1000); + sleep(1000); progress(i); }