diff options
| author | LostDragonist <lost.dragonist@gmail.com> | 2019-02-23 21:25:32 -0600 |
|---|---|---|
| committer | LostDragonist <lost.dragonist@gmail.com> | 2019-02-23 21:25:32 -0600 |
| commit | bcca611176cde56de50f16532d9bee45fc838ac5 (patch) | |
| tree | 5feb6bcee133e1e546080147845ba8c2aaa2c11a /src/mainwindow.cpp | |
| parent | ceb0ea65ed8aea682e80a3d56f042b12a2894278 (diff) | |
Store endorsement state of MO when a reply is received
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index ca647872..18dd79d9 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -5720,10 +5720,12 @@ void MainWindow::nxmEndorsementToggled(QString, int, QVariant, QVariant resultDa QMap results = resultData.toMap(); if (results["status"].toString().compare("Endorsed") == 0) { QMessageBox::information(this, tr("Thank you!"), tr("Thank you for your endorsement!")); + Settings::instance().directInterface().setValue("endorse_state", "Endorsed"); } else if (results["status"].toString().compare("Abstained") == 0) { QMessageBox::information(this, tr("Okay."), tr("This mod will not be endorsed and will no longer ask you to endorse.")); + Settings::instance().directInterface().setValue("endorse_state", "Abstained"); } - ui->actionEndorseMO->setVisible(false); + ui->actionEndorseMO->setEnabled(false); if (!disconnect(sender(), SIGNAL(nxmEndorsementToggled(QString, int, QVariant, QVariant, int)), this, SLOT(nxmEndorsementToggled(QString, int, QVariant, QVariant, int)))) { qCritical("failed to disconnect endorsement slot"); |
