1
0
Fork 0
mirror of https://github.com/HamletDuFromage/aio-switch-updater.git synced 2024-11-28 12:22:02 +00:00
This commit is contained in:
flb 2021-09-23 03:29:33 +02:00
parent ad2dc0bab1
commit 8033b8f199

View file

@ -38,12 +38,13 @@ void WorkerPage::draw(NVGcontext* vg, int x, int y, unsigned width, unsigned hei
if (this->draw_page) { if (this->draw_page) {
if (!this->workStarted) { if (!this->workStarted) {
appletSetMediaPlaybackState(true); appletSetMediaPlaybackState(true);
this->workStarted = true; appletBeginBlockingHomeButton(0);
ProgressEvent::instance().reset(); ProgressEvent::instance().reset();
this->workStarted = true;
workerThread = new std::thread(&WorkerPage::doWork, this); workerThread = new std::thread(&WorkerPage::doWork, this);
} }
else if (ProgressEvent::instance().finished()) { else if (ProgressEvent::instance().finished()) {
brls::Logger::debug("Worker done"); appletEndBlockingHomeButton();
appletSetMediaPlaybackState(false); appletSetMediaPlaybackState(false);
if (ProgressEvent::instance().getStatusCode() > 399) { if (ProgressEvent::instance().getStatusCode() > 399) {
this->draw_page = false; this->draw_page = false;