|
|
@ -1586,6 +1586,11 @@ void MainWindow::setupMiningTab() { |
|
|
|
DEBUG("changing number of threads to " << threads); |
|
|
|
rpc->setGenerate(threads, [=] (QJsonValue response){ |
|
|
|
DEBUG("setgenerate response=" << response); |
|
|
|
|
|
|
|
// instantly update miningthreads GUI
|
|
|
|
auto miningthreads = ui->tabWidget->findChild<QLCDNumber *>("miningthreads"); |
|
|
|
miningthreads->display(QString::number(threads)); // miningthreads
|
|
|
|
DEBUG("updated mining thread count to " << QString(threads) ); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
@ -1604,8 +1609,10 @@ void MainWindow::setupMiningTab() { |
|
|
|
DEBUG("setgenerate response=" << response); |
|
|
|
// these values will auto-update in a few seconds but do it
|
|
|
|
// immediately so as to not confuse the user
|
|
|
|
// TODO: coredumps
|
|
|
|
// lcd5->display(QString(threads)); // miningthreads
|
|
|
|
auto miningthreads = ui->tabWidget->findChild<QLCDNumber *>("miningthreads"); |
|
|
|
// miningthreads->display(QString(threads)); // miningthreads
|
|
|
|
miningthreads->display(QString::number(threads)); // miningthreads
|
|
|
|
DEBUG("updated mining thread count to " << QString(threads) ); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|