Skip to content

Commit

Permalink
Merge pull request PrismLauncher#1589 from Trial97/instance_reload
Browse files Browse the repository at this point in the history
Fully reload the instance list once the folder is changed
  • Loading branch information
Scrumplex authored and LunaisLazier committed Feb 9, 2024
1 parent 4620eb8 commit 7a8f48c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions launcher/InstanceList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -823,6 +823,9 @@ void InstanceList::on_InstFolderChanged([[maybe_unused]] const Setting& setting,
}
m_instDir = newInstDir;
m_groupsLoaded = false;
beginRemoveRows(QModelIndex(), 0, count());
m_instances.erase(m_instances.begin(), m_instances.end());
endRemoveRows();
emit instancesChanged();
}
}
Expand Down

0 comments on commit 7a8f48c

Please sign in to comment.