diff options
| author | Jonathan Feenstra <26406078+JonathanFeenstra@users.noreply.github.com> | 2024-10-30 16:20:39 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-30 16:20:39 +0100 |
| commit | 91912f5fef80d870fe8ef3041076306843da6153 (patch) | |
| tree | 7b25873fd0e9bd957a4d0afcfc657662e2e0e59e /src/mainwindow.cpp | |
| parent | f42a9f1cef66907086edaa7bb005d434758f6326 (diff) | |
(Un-)endorse & (un-)track mods from the same source (#2141)
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index f346a3e4..04ea7543 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -3068,12 +3068,14 @@ void MainWindow::nxmEndorsementsAvailable(QVariant userData, QVariant resultData ModInfo::getByModID(result->first, result->second.first); for (auto mod : modsList) { - if (result->second.second == "Endorsed") - mod->setIsEndorsed(true); - else if (result->second.second == "Abstained") - mod->setNeverEndorse(); - else - mod->setIsEndorsed(false); + if (mod->endorsedState() != EndorsedState::ENDORSED_NEVER) { + if (result->second.second == "Endorsed") + mod->setIsEndorsed(true); + else if (result->second.second == "Abstained") + mod->setNeverEndorse(); + else + mod->setIsEndorsed(false); + } } if (Settings::instance().nexus().endorsementIntegration()) { |
