Skip to content

Commit

Permalink
Add disableupdatecheck argument check in aboutdialog version info button
Browse files Browse the repository at this point in the history
  • Loading branch information
jamescowens committed Feb 19, 2024
1 parent 34f3d59 commit 7587db3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/qt/aboutdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@ AboutDialog::AboutDialog(QWidget *parent) :

resize(GRC::ScaleSize(this, width(), height()));

if (!fTestNet) {
if (!fTestNet && !gArgs.GetBoolArg("-disableupdatecheck", false)) {
connect(ui->versionInfoButton, &QAbstractButton::pressed, this, [this]() { handlePressVersionInfoButton(); });
} else if (gArgs.GetBoolArg("-disableupdatecheck", false)) {
ui->versionInfoButton->setDisabled(true);
ui->versionInfoButton->setToolTip(tr("Version information and update check has been disabled "
"by config or startup parameter."));
} else {
ui->versionInfoButton->setDisabled(true);
ui->versionInfoButton->setToolTip(tr("Version information is not available on testnet."));
Expand Down

0 comments on commit 7587db3

Please sign in to comment.