mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-26 11:48:36 +01:00
Progress bar: Fix the indeterminate state
This commit is contained in:
1 parent
d2c3a7c978
commit
ff75eced70
3 files changed
+31
-13
No files matched your search
@@ -95,8 +95,8 @@ void OnScreenDisplay::SetProgressBar(std::string id, std::string &&message, int
|
||||
bool found = false;
|
||||
for (auto &bar : bars_) {
|
||||
if (bar.id == id) {
|
||||
_dbg_assert_(minValue == bar.minValue);
|
||||
_dbg_assert_(maxValue == bar.maxValue);
|
||||
bar.minValue = minValue;
|
||||
bar.maxValue = maxValue;
|
||||
bar.progress = progress;
|
||||
bar.message = message;
|
||||
bar.endTime = now + 60.0; // Nudge the progress bar to keep it shown.
|
||||
|
||||
Reference in new issue
Block a user