mirror of
https://github.com/monero-project/monero-gui.git
synced 2026-04-04 19:27:26 -04:00
mining: display max cpu thread count and warn about impact
This commit is contained in:
2
main.cpp
2
main.cpp
@@ -36,6 +36,7 @@
|
||||
#include <QDesktopWidget>
|
||||
#include <QScreen>
|
||||
#include <QRegExp>
|
||||
#include <QThread>
|
||||
#include "clipboardAdapter.h"
|
||||
#include "filter.h"
|
||||
#include "oscursor.h"
|
||||
@@ -284,6 +285,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
engine.rootContext()->setContextProperty("defaultAccountName", accountName);
|
||||
engine.rootContext()->setContextProperty("applicationDirectory", QApplication::applicationDirPath());
|
||||
engine.rootContext()->setContextProperty("numberMiningThreadsAvailable", QThread::idealThreadCount());
|
||||
|
||||
bool builtWithScanner = false;
|
||||
#ifdef WITH_SCANNER
|
||||
|
||||
Reference in New Issue
Block a user