mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 15:09:59 +01:00
Merge #12610: Multiwallet for the GUI
779c5f984Qt: hide RPCConsole wallet selector when no wallets are present (Jonas Schnelli)dc6f150f3Qt: show wallet name in request dlg in case of multiwallet (Jonas Schnelli)4826ca4b8Qt: show wallet name in send confirmation dlg in case of multiwallet (Jonas Schnelli)cfa4133ceGUI: RPCConsole: Log wallet changes (Luke Dashjr)b6d04fc7cQt: Get wallet name from WalletModel rather than passing it around (Luke Dashjr)12d8d2681Qt: When multiple wallets are used, include in notifications the name (Jonas Schnelli)d1ec34a76Qt: QComboBox::setVisible doesn't work in toolbars, so defer adding it at all until needed (Luke Dashjr)d49cc70e6Qt: Add wallet selector to debug console (Jonas Schnelli)d558f44c5Bugfix: RPC: Add missing UnregisterHTTPHandler for /wallet/ (Luke Dashjr)85d531971Qt: Ensure UI updates only come from the currently selected walletView (Luke Dashjr)e449f9a9eQt: Add a combobox to toolbar to select from multiple wallets (Luke Dashjr)3dba3c3acQt: Load all wallets into WalletModels (Luke Dashjr) Pull request description: This is an overhaul of #11383 (plus some additions). It avoids unnecessary coupling of httpserver/jsonrpc and the wallet as well as it avoids pointer pure passing (and pointer deletion) of `CWallet` (plus other minor design changes). Additionally it adds the wallet name to the sendconfirmation and request dialog (in case multiwallet is active) Tree-SHA512: 3d06e18badbc5d1821e488bf1dae463bb0be544cf11b2b618e025812bfdd13c5f39604bb93b4c705313930e7dc4e66f4848b9469ba14871bade58e7a027246a1
This commit is contained in:
@@ -110,8 +110,9 @@ void WalletModel::updateStatus()
|
||||
{
|
||||
EncryptionStatus newEncryptionStatus = getEncryptionStatus();
|
||||
|
||||
if(cachedEncryptionStatus != newEncryptionStatus)
|
||||
Q_EMIT encryptionStatusChanged(newEncryptionStatus);
|
||||
if(cachedEncryptionStatus != newEncryptionStatus) {
|
||||
Q_EMIT encryptionStatusChanged();
|
||||
}
|
||||
}
|
||||
|
||||
void WalletModel::pollBalanceChanged()
|
||||
@@ -743,3 +744,18 @@ int WalletModel::getDefaultConfirmTarget() const
|
||||
{
|
||||
return nTxConfirmTarget;
|
||||
}
|
||||
|
||||
QString WalletModel::getWalletName() const
|
||||
{
|
||||
LOCK(wallet->cs_wallet);
|
||||
QString walletName = QString::fromStdString(wallet->GetName());
|
||||
if (walletName.endsWith(".dat")) {
|
||||
walletName.truncate(walletName.size() - 4);
|
||||
}
|
||||
return walletName;
|
||||
}
|
||||
|
||||
bool WalletModel::isMultiwallet()
|
||||
{
|
||||
return gArgs.GetArgs("-wallet").size() > 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user