mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 03:52:49 +01:00
fix(gui): Fix crashes when trying to run dash-qt
with --disablewallet
(#5041)
* fix(gui): Fix crashes when trying to run `dash-qt` with `--disablewallet` * use enableWallet
This commit is contained in:
parent
0b162ff599
commit
47ab151ed5
@ -1339,9 +1339,11 @@ void BitcoinGUI::setNumBlocks(int count, const QDateTime& blockDate, const QStri
|
||||
// Disabling macOS App Nap on initial sync, disk, reindex operations and mixing.
|
||||
bool disableAppNap = !m_node.masternodeSync().isSynced();
|
||||
#ifdef ENABLE_WALLET
|
||||
if (enableWallet) {
|
||||
for (const auto& wallet : m_node.walletClient().getWallets()) {
|
||||
disableAppNap |= wallet->coinJoin().isMixing();
|
||||
}
|
||||
}
|
||||
#endif // ENABLE_WALLET
|
||||
if (disableAppNap) {
|
||||
m_app_nap_inhibitor->disableAppNap();
|
||||
|
Loading…
Reference in New Issue
Block a user