1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 10:42:36 +01:00

fix formatting (somehow broken by copy pasta)

This commit is contained in:
Megamouse 2021-04-24 10:42:59 +02:00
parent 1caf81811a
commit 1015c126d7

View File

@ -75,14 +75,17 @@ void progress_dialog_server::operator()()
dlg->type.se_normal = true; dlg->type.se_normal = true;
dlg->type.bg_invisible = true; dlg->type.bg_invisible = true;
dlg->type.progress_bar_count = 1; dlg->type.progress_bar_count = 1;
dlg->on_close = [](s32 /*status*/) { dlg->on_close = [](s32 /*status*/)
Emu.CallAfter([]() { {
Emu.CallAfter([]()
{
// Abort everything // Abort everything
Emu.Stop(); Emu.Stop();
}); });
}; };
Emu.CallAfter([dlg, text0]() { Emu.CallAfter([dlg, text0]()
{
dlg->Create(text0, text0); dlg->Create(text0, text0);
}); });
} }
@ -146,7 +149,8 @@ void progress_dialog_server::operator()()
} }
else if (dlg) else if (dlg)
{ {
Emu.CallAfter([=]() { Emu.CallAfter([=]()
{
dlg->SetMsg(text_new); dlg->SetMsg(text_new);
dlg->ProgressBarSetMsg(0, progr); dlg->ProgressBarSetMsg(0, progr);
dlg->ProgressBarSetValue(0, std::floor(value)); dlg->ProgressBarSetValue(0, std::floor(value));
@ -172,7 +176,8 @@ void progress_dialog_server::operator()()
} }
else if (dlg) else if (dlg)
{ {
Emu.CallAfter([=]() { Emu.CallAfter([=]()
{
dlg->Close(true); dlg->Close(true);
}); });
} }