Skip to content

Commit

Permalink
Qt: End memcard conversion progress at 100% instead of 99%
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTechnician27 authored and F0bes committed Feb 12, 2025
1 parent 5c25637 commit 5798cd7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pcsx2-qt/Settings/MemoryCardConvertWorker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -161,5 +161,7 @@ bool MemoryCardConvertWorker::ConvertToFolder(const std::string& srcFileName, co
this->IncrementProgressValue();
}

this->IncrementProgressValue();

return true;
}

0 comments on commit 5798cd7

Please sign in to comment.