MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / on_InstFolderChanged

Method on_InstFolderChanged

launcher/InstanceList.cpp:752–763  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

750}
751
752void InstanceList::on_InstFolderChanged(const Setting& setting, QVariant value)
753{
754 QString newInstDir = QDir(value.toString()).canonicalPath();
755 if (newInstDir != m_instDir) {
756 if (m_groupsLoaded) {
757 saveGroupList();
758 }
759 m_instDir = newInstDir;
760 m_groupsLoaded = false;
761 emit instancesChanged();
762 }
763}
764
765void InstanceList::on_GroupStateChanged(const QString& group, bool collapsed)
766{

Callers

nothing calls this directly

Calls 2

QDirClass · 0.70
toStringMethod · 0.45

Tested by

no test coverage detected