summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2021-01-21 21:56:08 +0100
committerMikaël Capelle <capelle.mikael@gmail.com>2021-01-21 21:56:08 +0100
commitb1795f83cd500b5b58928efa5e170de8338178d5 (patch)
tree3f79cd0a016b108e4720fd08f1f0e4b13b30a66e
parentd81fb09f33f8cd668db20b6120c481580c6c938e (diff)
Refresh data tab when mods are enabled or moved.
-rw-r--r--src/mainwindow.cpp6
-rw-r--r--src/modlist.cpp2
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);
}