also show the loading circle on the former progress bar condition

This commit is contained in:
Cvolton 2024-11-12 20:37:47 +01:00
parent 02845d967e
commit 9b95301472
No known key found for this signature in database

View file

@ -649,7 +649,10 @@ void ModList::showStatus(ModListStatus status, std::string const& message, std::
m_statusContainer->setVisible(true); m_statusContainer->setVisible(true);
m_statusDetails->setVisible(false); m_statusDetails->setVisible(false);
m_statusDetailsBtn->setVisible(details.has_value()); m_statusDetailsBtn->setVisible(details.has_value());
m_statusLoadingCircle->setVisible(std::holds_alternative<ModListUnkProgressStatus>(status)); m_statusLoadingCircle->setVisible(
std::holds_alternative<ModListUnkProgressStatus>(status)
|| std::holds_alternative<ModListProgressStatus>(status)
);
// the loading bar makes no sense to display - it's meant for progress of mod list page loading // 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 // however the mod list pages are so small, that there usually isn't a scenario where the loading