From 1015c126d705d5246f34d4da6d7dd7a05cdf251c Mon Sep 17 00:00:00 2001 From: Megamouse Date: Sat, 24 Apr 2021 10:42:59 +0200 Subject: [PATCH] fix formatting (somehow broken by copy pasta) --- rpcs3/Emu/system_progress.cpp | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/rpcs3/Emu/system_progress.cpp b/rpcs3/Emu/system_progress.cpp index 066d8e9149..c4181263f8 100644 --- a/rpcs3/Emu/system_progress.cpp +++ b/rpcs3/Emu/system_progress.cpp @@ -75,14 +75,17 @@ void progress_dialog_server::operator()() dlg->type.se_normal = true; dlg->type.bg_invisible = true; dlg->type.progress_bar_count = 1; - dlg->on_close = [](s32 /*status*/) { - Emu.CallAfter([]() { - // Abort everything - Emu.Stop(); - }); + dlg->on_close = [](s32 /*status*/) + { + Emu.CallAfter([]() + { + // Abort everything + Emu.Stop(); + }); }; - Emu.CallAfter([dlg, text0]() { + Emu.CallAfter([dlg, text0]() + { dlg->Create(text0, text0); }); } @@ -146,7 +149,8 @@ void progress_dialog_server::operator()() } else if (dlg) { - Emu.CallAfter([=]() { + Emu.CallAfter([=]() + { dlg->SetMsg(text_new); dlg->ProgressBarSetMsg(0, progr); dlg->ProgressBarSetValue(0, std::floor(value)); @@ -172,7 +176,8 @@ void progress_dialog_server::operator()() } else if (dlg) { - Emu.CallAfter([=]() { + Emu.CallAfter([=]() + { dlg->Close(true); }); }