Skip to content

Commit 56d4892

Browse files
committed
Correctly update module name / description after loading
1 parent f46af36 commit 56d4892

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Source/Menus/ModManagerGUI.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,13 @@ void ModManagerGUI::ToggleMod() {
120120
disabledModsList.emplace(modRecord.ModulePath);
121121
g_ModuleMan.UnloadDataModule(modRecord.ModulePath);
122122
}
123+
124+
const DataModule* dataModule = g_ModuleMan.GetDataModule(g_ModuleMan.GetModuleID(modRecord.ModulePath));
125+
if (dataModule) {
126+
modRecord.ModuleName = dataModule->GetFriendlyName();
127+
modRecord.Description = dataModule->GetDescription();
128+
}
129+
123130
selectedItem->m_Name = modRecord.GetDisplayString();
124131
m_ModsListBox->SetSelectedIndex(index);
125132
m_ModsListBox->Invalidate();

0 commit comments

Comments
 (0)