From 7a04a245b0da1e3efcfdc3d4c313bce55a860ea8 Mon Sep 17 00:00:00 2001 From: Duke Date: Sun, 5 Feb 2023 23:02:56 -0500 Subject: [PATCH] Show the word 'thread' or 'threads' when selecting number of mining threads --- src/mainwindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 65c105e..5da98c9 100755 --- a/src/mainwindow.cpp +++ b/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;