Skip to content

Commit

Permalink
Change order of precedence for excluded project status in UI.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamescowens committed Jan 19, 2025
1 parent f9a3392 commit 33cae9e
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/qt/researcher/researchermodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -529,16 +529,18 @@ std::vector<ProjectRow> ResearcherModel::buildProjectTable(bool extended) const
// between local projects and whitelisted projects:
//
if (const ProjectEntry* whitelist_project = project.TryWhitelist(whitelist)) {
if (std::find(excluded_projects.begin(), excluded_projects.end(), whitelist_project->m_name)
!= excluded_projects.end()) {
row.m_whitelisted = ProjectRow::WhiteListStatus::Excluded;
row.m_error = tr("Excluded");
} else if (whitelist_project->m_status == ProjectEntryStatus::MAN_GREYLISTED) {
if (whitelist_project->m_status == ProjectEntryStatus::MAN_GREYLISTED) {
row.m_whitelisted = ProjectRow::WhiteListStatus::Manually_Greylisted;
row.m_error = tr("Manually Greylisted");
} else if (whitelist_project->m_status == ProjectEntryStatus::AUTO_GREYLISTED) {
row.m_whitelisted = ProjectRow::WhiteListStatus::Automatically_Greylisted;
row.m_error = tr("Automatically Greylisted");
} else if (std::find(excluded_projects.begin(), excluded_projects.end(), whitelist_project->m_name)
!= excluded_projects.end()) {
row.m_whitelisted = ProjectRow::WhiteListStatus::Excluded;
row.m_error = tr("Excluded");
} else if (whitelist_project->m_status == ProjectEntryStatus::UNKNOWN){
row.m_whitelisted = ProjectRow::WhiteListStatus::False;
} else {
row.m_whitelisted = ProjectRow::WhiteListStatus::True;
}
Expand Down

0 comments on commit 33cae9e

Please sign in to comment.