Skip to content

Commit

Permalink
Change versionInfoButton logic to use disable instead of hide()
Browse files Browse the repository at this point in the history
Co-authored-by: div72 <60045611+div72@users.noreply.github.com>
  • Loading branch information
jamescowens and div72 authored Feb 19, 2024
1 parent a674f0f commit 34f3d59
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/qt/aboutdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ AboutDialog::AboutDialog(QWidget *parent) :
if (!fTestNet) {
connect(ui->versionInfoButton, &QAbstractButton::pressed, this, [this]() { handlePressVersionInfoButton(); });
} else {
ui->versionInfoButton->hide();
ui->versionInfoButton->setDisabled(true);
ui->versionInfoButton->setToolTip(tr("Version information is not available on testnet."));
}
}

Expand Down

0 comments on commit 34f3d59

Please sign in to comment.