mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-17 08:17:59 +00:00
mining: make threads parameter optional
This commit is contained in:
parent
e826f7c1ec
commit
cf364206de
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue