multisig: Disabled bulk actions and a set to reqiure batch

- Added condition to disable buttonActionMain when mainForm.multiSig is true

- Removed buttons (buttonRevealAll, buttonRedeemAll, and buttonSendAll) when WatchOnly or multiSig is true
- Added buttons (buttonAddressVerify) when WatchOnly is true
- Updated conditions for showing/hiding toolStripStatusLabelLedger and toolStripStatusLabelMultisig
This commit is contained in:
Nathan Woodburn 2023-06-26 21:25:42 +10:00
parent f69f16df4a
commit 6cc6cd4a79
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1
2 changed files with 14 additions and 8 deletions

View File

@ -157,9 +157,9 @@ namespace FireWallet
network = Convert.ToInt32(nodeSettings["Network"]); network = Convert.ToInt32(nodeSettings["Network"]);
GetName(); GetName();
if (mainForm.WatchOnly) if (mainForm.WatchOnly || mainForm.multiSig)
{ {
buttonActionMain.Enabled = false; // Only allow sending in batches for ledger buttonActionMain.Enabled = false; // Only allow sending in batches for ledger and multisig to prevent confusion
} }
} }
#region API #region API

View File

@ -770,18 +770,12 @@ namespace FireWallet
{ {
WatchOnly = true; WatchOnly = true;
toolStripStatusLabelLedger.Visible = true; toolStripStatusLabelLedger.Visible = true;
buttonRevealAll.Visible = false;
buttonRedeemAll.Visible = false;
buttonSendAll.Visible = false;
buttonAddressVerify.Visible = true; buttonAddressVerify.Visible = true;
} }
else else
{ {
WatchOnly = false; WatchOnly = false;
toolStripStatusLabelLedger.Visible = false; toolStripStatusLabelLedger.Visible = false;
buttonRevealAll.Visible = true;
buttonRedeemAll.Visible = true;
buttonSendAll.Visible = true;
buttonAddressVerify.Visible = false; buttonAddressVerify.Visible = false;
} }
@ -813,6 +807,18 @@ namespace FireWallet
{ {
toolStripStatusLabelMultisig.Visible = false; toolStripStatusLabelMultisig.Visible = false;
} }
if (WatchOnly || multiSig)
{
buttonRevealAll.Visible = false;
buttonRedeemAll.Visible = false;
buttonSendAll.Visible = false;
}
else
{
buttonRevealAll.Visible = true;
buttonRedeemAll.Visible = true;
buttonSendAll.Visible = true;
}
return true; return true;
} }