| 750 | } |
| 751 | |
| 752 | void 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 | |
| 765 | void InstanceList::on_GroupStateChanged(const QString& group, bool collapsed) |
| 766 | { |