diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/mainwindow.cpp | 6 | ||||
| -rw-r--r-- | src/modlist.cpp | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index a79aca2f..d6391677 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -313,6 +313,12 @@ MainWindow::MainWindow(Settings &settings setupModList(); ui->espList->setup(m_OrganizerCore, this, ui); + connect(m_OrganizerCore.modList(), &ModList::modPrioritiesChanged, [this]() { + m_DataTab->updateTree(); + }); + connect(m_OrganizerCore.modList(), &ModList::modStatesChanged, [this]() { + m_DataTab->updateTree(); + }); ui->bsaList->setLocalMoveOnly(true); ui->bsaList->setHeaderHidden(true); diff --git a/src/modlist.cpp b/src/modlist.cpp index e2a443bd..13b2298f 100644 --- a/src/modlist.cpp +++ b/src/modlist.cpp @@ -1433,4 +1433,6 @@ void ModList::setActive(const QModelIndexList& indices, bool active) else { m_Profile->setModsEnabled({}, mods); } + + emit modStatesChanged(indices); } |
