mirror of
https://github.com/Nathanwoodburn/FireWallet.git
synced 2024-11-24 08:08:14 +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"]);
|
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
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user