mirror of
https://github.com/ModOrganizer2/modorganizer.git
synced 2026-07-27 13:58:24 -07:00
Write currentProfile to Ini file on profile change. Exclusively for outside detection of profile change.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user