mirror of
https://github.com/Nathanwoodburn/FireWallet.git
synced 2024-12-25 15:28:15 +11:00
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:
parent
f69f16df4a
commit
6cc6cd4a79
@ -157,9 +157,9 @@ namespace FireWallet
|
||||
network = Convert.ToInt32(nodeSettings["Network"]);
|
||||
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
|
||||
|
@ -770,18 +770,12 @@ namespace FireWallet
|
||||
{
|
||||
WatchOnly = true;
|
||||
toolStripStatusLabelLedger.Visible = true;
|
||||
buttonRevealAll.Visible = false;
|
||||
buttonRedeemAll.Visible = false;
|
||||
buttonSendAll.Visible = false;
|
||||
buttonAddressVerify.Visible = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
WatchOnly = false;
|
||||
toolStripStatusLabelLedger.Visible = false;
|
||||
buttonRevealAll.Visible = true;
|
||||
buttonRedeemAll.Visible = true;
|
||||
buttonSendAll.Visible = true;
|
||||
buttonAddressVerify.Visible = false;
|
||||
}
|
||||
|
||||
@ -813,6 +807,18 @@ namespace FireWallet
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user