mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 09:59:59 +03:00
fix: force metadata version list refreshes to reload
manual refreshes on version selection screens could reuse cached metadata and skip downloading updated manifests, so new versions would not appear until Prism was restarted. pass an explicit forced reload through the shared version list loading path and use it from refresh actions so manual refresh always reloads metadata
Signed-off-by: morsz <morsz@morsz.dev>
(cherry picked from commit 2219c37d7f)
This commit is contained in:
parent
841b05b446
commit
f6cb9daf99
15 changed files with 34 additions and 25 deletions
|
|
@ -33,9 +33,9 @@ VersionList::VersionList(Meta::Version::Ptr version, QObject* parent) : BaseVers
|
|||
sortVersions();
|
||||
}
|
||||
|
||||
Task::Ptr VersionList::getLoadTask()
|
||||
Task::Ptr VersionList::getLoadTask(bool forceReload)
|
||||
{
|
||||
auto task = m_version->loadTask(Net::Mode::Online);
|
||||
auto task = m_version->loadTask(Net::Mode::Online, forceReload);
|
||||
connect(task.get(), &Task::finished, this, &VersionList::sortVersions);
|
||||
return task;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue