mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-28 18:56:32 +02:00
Merge pull request #518
cf36420
mining: make threads parameter optional (Jaquee)
This commit is contained in:
commit
afbfbeaa49
@ -264,6 +264,8 @@ bool WalletManager::isMining() const
|
|||||||
|
|
||||||
bool WalletManager::startMining(const QString &address, quint32 threads)
|
bool WalletManager::startMining(const QString &address, quint32 threads)
|
||||||
{
|
{
|
||||||
|
if(threads == 0)
|
||||||
|
threads = 1;
|
||||||
return m_pimpl->startMining(address.toStdString(), threads);
|
return m_pimpl->startMining(address.toStdString(), threads);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user