mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-06-12 21:27:44 +02:00
NOISSUE do not override already loaded metadata entities with partial data
This commit is contained in:
@ -103,7 +103,7 @@ void Index::parse(const QJsonObject& obj)
|
||||
parseIndex(obj, this);
|
||||
}
|
||||
|
||||
void Index::merge(const Ptr &other)
|
||||
void Index::merge(const std::shared_ptr<Index> &other)
|
||||
{
|
||||
const QVector<VersionListPtr> lists = std::dynamic_pointer_cast<Index>(other)->m_lists;
|
||||
// initial load, no need to merge
|
||||
@ -124,7 +124,7 @@ void Index::merge(const Ptr &other)
|
||||
{
|
||||
if (m_uids.contains(list->uid()))
|
||||
{
|
||||
m_uids[list->uid()]->merge(list);
|
||||
m_uids[list->uid()]->mergeFromIndex(list);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user