src: minor improvements for release

* only reduce ideal thread count on windows
* show export compile commands flag in description
* not black in radio button
This commit is contained in:
Eberhard Graether
2018-05-03 22:14:01 +02:00
parent f5a4ad1db0
commit 0ba6f9b7a0
3 changed files with 16 additions and 10 deletions
+9 -4
View File
@@ -93,9 +93,9 @@ std::string utility::executeProcessUntilNoOutput(const std::string& command, con
}
int utility::executeProcessAndGetExitCode(
const std::wstring& commandPath,
const std::vector<std::wstring>& commandArguments,
const FilePath& workingDirectory,
const std::wstring& commandPath,
const std::vector<std::wstring>& commandArguments,
const FilePath& workingDirectory,
const int timeout
){
QProcess process;
@@ -156,7 +156,12 @@ OsType utility::getOsType()
int utility::getIdealThreadCount()
{
return std::max(1, QThread::idealThreadCount() - 1);
int threadCount = QThread::idealThreadCount();
if (getOsType() == OS_WINDOWS)
{
threadCount -= 1;
}
return std::max(1, threadCount);
}
bool utility::saveLicense(const License* license)