Qt: End memcard conversion progress at 100% instead of 99%

This commit is contained in:
TheTechnician27 2025-02-10 23:48:10 -06:00 committed by Ty
parent 5c25637381
commit 5798cd7176
1 changed files with 3 additions and 1 deletions

View File

@ -121,7 +121,7 @@ bool MemoryCardConvertWorker::ConvertToFolder(const std::string& srcFileName, co
// Set progress bar to the literal number of bytes in the memcard.
// Plus two because there is a lag period after the Save calls complete
// where the progress bar stalls out; this lets us stop the progress bar
// just shy of 50 and 100% so it seems like its still doing some work.
// just shy of 50 and 100% so it seems like it's still doing some work.
this->SetProgressRange((sourceBuffer.size() * 2) + 2);
this->SetProgressValue(0);
@ -161,5 +161,7 @@ bool MemoryCardConvertWorker::ConvertToFolder(const std::string& srcFileName, co
this->IncrementProgressValue();
}
this->IncrementProgressValue();
return true;
}