mirror of
https://github.com/feather-wallet/feather.git
synced 2024-12-23 03:59:29 +00:00
View-only: add toolip for disabled button
This commit is contained in:
parent
b76636daa6
commit
c9775affd2
1 changed files with 5 additions and 1 deletions
|
@ -22,7 +22,11 @@ ViewOnlyDialog::ViewOnlyDialog(QSharedPointer<AppContext> ctx, QWidget *parent)
|
|||
connect(ui->btn_Copy, &QPushButton::clicked, this, &ViewOnlyDialog::copyToClipboad);
|
||||
connect(ui->btn_Save, &QPushButton::clicked, this, &ViewOnlyDialog::onWriteViewOnlyWallet);
|
||||
|
||||
ui->btn_Save->setEnabled(!m_ctx->wallet->viewOnly());
|
||||
if (m_ctx->wallet->viewOnly()) {
|
||||
ui->btn_Save->setEnabled(false);
|
||||
ui->btn_Save->setToolTip("Wallet is already view-only");
|
||||
}
|
||||
|
||||
this->adjustSize();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue