Write currentProfile to Ini file on profile change. Exclusively for outside detection of profile change.

This commit is contained in:
Al
2019-02-15 15:06:44 +01:00
parent ad7d740a0b
commit 2106f29224
+7
View File
@@ -836,6 +836,13 @@ void OrganizerCore::setCurrentProfile(const QString &profileName)
connect(m_CurrentProfile, SIGNAL(modStatusChanged(uint)), this, SLOT(modStatusChanged(uint)));
connect(m_CurrentProfile, SIGNAL(modStatusChanged(QList<uint>)), this, SLOT(modStatusChanged(QList<uint>)));
refreshDirectoryStructure();
//This line is not actually needed and was only added to allow some
//outside detection of Mo2 profile change. (like BaobobMiller utility)
if (m_CurrentProfile != nullptr) {
settings().directInterface().setValue("selected_profile",
m_CurrentProfile->name().toUtf8().constData());
}
}
MOBase::IModRepositoryBridge *OrganizerCore::createNexusBridge() const