mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-12-27 05:36:42 +00:00
move callback definition outside loop
This commit is contained in:
parent
c547465657
commit
f0f9f34445
|
@ -806,10 +806,10 @@ void GMainWindow::OnMenuInstallCIA() {
|
||||||
QtConcurrent::run([&, filepaths] {
|
QtConcurrent::run([&, filepaths] {
|
||||||
QString current_path;
|
QString current_path;
|
||||||
Service::AM::InstallStatus status;
|
Service::AM::InstallStatus status;
|
||||||
for (int current_index = 0; current_index < filepaths.size(); current_index++) {
|
|
||||||
const auto cia_progress = [&](size_t written, size_t total) {
|
const auto cia_progress = [&](size_t written, size_t total) {
|
||||||
emit UpdateProgress(written, total);
|
emit UpdateProgress(written, total);
|
||||||
};
|
};
|
||||||
|
for (int current_index = 0; current_index < filepaths.size(); current_index++) {
|
||||||
current_path = filepaths.at(current_index);
|
current_path = filepaths.at(current_index);
|
||||||
status = Service::AM::InstallCIA(current_path.toStdString(), cia_progress);
|
status = Service::AM::InstallCIA(current_path.toStdString(), cia_progress);
|
||||||
emit CIAInstallReport(status, current_path);
|
emit CIAInstallReport(status, current_path);
|
||||||
|
|
Loading…
Reference in a new issue