disable the modlist slider

This commit is contained in:
Cvolton 2024-11-12 20:35:01 +01:00
parent 2d66279243
commit 02845d967e
No known key found for this signature in database

View file

@ -650,7 +650,15 @@ void ModList::showStatus(ModListStatus status, std::string const& message, std::
m_statusDetails->setVisible(false);
m_statusDetailsBtn->setVisible(details.has_value());
m_statusLoadingCircle->setVisible(std::holds_alternative<ModListUnkProgressStatus>(status));
m_statusLoadingBar->setVisible(std::holds_alternative<ModListProgressStatus>(status));
// the loading bar makes no sense to display - it's meant for progress of mod list page loading
// however the mod list pages are so small, that there usually isn't a scenario where the loading
// takes longer than a single frame - therefore this is useless
// server processing time isn't included in this - it's only after the server starts responding
// that we get any progress information
// also the position is wrong if you wanna restore the functionality
//m_statusLoadingBar->setVisible(std::holds_alternative<ModListProgressStatus>(status));
m_statusLoadingBar->setVisible(false);
// Update progress bar
if (auto per = std::get_if<ModListProgressStatus>(&status)) {