Progress bar: Fix the indeterminate state

This commit is contained in:
Henrik Rydgård committed 2023-06-21 01:08:24 +02:00
1 parent d2c3a7c978
commit ff75eced70
3 files changed
+31 -13

No files matched your search

+4
View File
@@ -824,6 +824,10 @@ void SystemInfoScreen::CreateTabs() {
g_OSD.SetProgressBar("testprogress", "Test Progress", 1, 100, 100);
return UI::EVENT_DONE;
});
internals->Add(new Choice(si->T("N/A%")))->OnClick.Add([&](UI::EventParams &) {
g_OSD.SetProgressBar("testprogress", "Test Progress", 0, 0, 0);
return UI::EVENT_DONE;
});
internals->Add(new Choice(si->T("Clear")))->OnClick.Add([&](UI::EventParams &) {
g_OSD.RemoveProgressBar("testprogress", 0.25f);
return UI::EVENT_DONE;