22// Distributed under the MIT/X11 software license, see the accompanying
33// file COPYING or https://opensource.org/licenses/mit-license.php.
44
5+ #include " logging.h"
6+
57#include " qt/bitcoinunits.h"
68#include " qt/decoration.h"
79#include " qt/forms/ui_researcherwizardsummarypage.h"
@@ -114,6 +116,7 @@ void ResearcherWizardSummaryPage::refreshOverallStatus()
114116 const int icon_size = ui->overallStatusIconLabel ->width ();
115117
116118 QString status;
119+ QString status_tooltip;
117120 QIcon icon;
118121
119122 if (m_researcher_model->outOfSync ()) {
@@ -125,21 +128,26 @@ void ResearcherWizardSummaryPage::refreshOverallStatus()
125128 } else if (m_researcher_model->hasRenewableBeacon ()) {
126129 status = tr (" Beacon renewal available." );
127130 icon = QIcon (" :/icons/warning" );
131+ } else if (m_researcher_model->hasSplitCpid ()) {
132+ status = tr (" Split CPID or mismatched email." );
133+ status_tooltip = tr (" Your projects either refer to more than one CPID or your projects\' email do not match "
134+ " what you used to configure Gridcoin here. Please ensure all of your projects are attached "
135+ " using the same email address, the email address matches what was configured here, and if "
136+ " you added a project recently, update that project and then all other projects using the "
137+ " update button in the BOINC manager, then restart the client and recheck." );
138+ icon = QIcon (" :/icons/warning" );
128139 } else if (!m_researcher_model->hasMagnitude ()) {
129140 status = tr (" Waiting for magnitude." );
130141 icon = QIcon (" :/icons/scraper_waiting_light" );
131- } else if (m_researcher_model->hasSplitCpid ()) {
132- status = tr (" Likely split CPID - projects refer to more than one CPID. Please ensure all\n "
133- " of your projects are attached using the same email address and if you added\n "
134- " a project recently, update that project and then all other projects using the\n "
135- " update button in the BOINC manager, then go to the projects tab and refresh." );
136- icon = QIcon (" :/icons/warning" );
137142 } else {
138143 status = tr (" Everything looks good." );
139144 icon = QIcon (" :/icons/round_green_check" );
140145 }
141146
142147 ui->overallStatusLabel ->setText (status);
148+
149+ if (!status_tooltip.isEmpty ()) ui->overallStatusLabel ->setToolTip (status_tooltip);
150+
143151 ui->overallStatusIconLabel ->setPixmap (icon.pixmap (icon_size, icon_size));
144152}
145153
0 commit comments