Skip to content

Commit

Permalink
Merge pull request #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 committed Nov 23, 2023
2 parents d60d089 + c2b03d0 commit 2b17a61
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 2b17a61

Please sign in to comment.