Browse Source

Show the word 'thread' or 'threads' when selecting number of mining threads

pull/112/head
Duke 1 year ago
parent
commit
7a04a245b0
  1. 4
      src/mainwindow.cpp

4
src/mainwindow.cpp

@ -1521,9 +1521,11 @@ void MainWindow::setupMiningTab() {
auto combo = new QComboBox(tab);
combo->setObjectName("genproclimit");
auto threadStr = tr("thread");
auto threadsStr = tr("threads");
// give options from 1 to hwc/2 , which should represent physical CPUs
for(int i=0; i < hwc/2; i++) {
combo->insertItem(i, QString::number(i+1));
combo->insertItem(i, QString::number(i+1) % " " % (i+1==1 ? threadStr : threadsStr));
}
QFont font;

Loading…
Cancel
Save