From 39e287f60d56882eb750bf62d607cb6638ff6968 Mon Sep 17 00:00:00 2001 From: plc-user <74435298+plc-user@users.noreply.github.com> Date: Mon, 27 Jan 2025 17:04:26 +0100 Subject: [PATCH 1/2] machine_info: fix element-count and make static text a bit shorter --- sources/machine_info.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/machine_info.cpp b/sources/machine_info.cpp index 6f9f5ae7c..56ef291c1 100644 --- a/sources/machine_info.cpp +++ b/sources/machine_info.cpp @@ -180,7 +180,7 @@ void MachineInfo::send_info_to_debug() qInfo()<< ""; - qInfo()<< " Count the *.elmt files you have in your collections (Official-common-collection, user-/company-collections, user-/custom-collections, etc.):"; + qInfo()<< " Count the elements in your collections (Official-common-collection, company-collections, custom-collections):"; QStringList nameFilters; nameFilters << "*.elmt"; @@ -252,7 +252,7 @@ void MachineInfo::send_info_to_debug() qInfo() << "FileSystemType:" << storage.fileSystemType(); qInfo() << "SizeTotal:" << storage.bytesTotal()/1000000000 << "GB"; qInfo() << "AvailableSize:" << storage.bytesAvailable()/1000000000 << "GB"; - qInfo()<< "Count All Elements in collections ="<< commomElementsDir + customElementsDir + customElementsDir << "Elements"; + qInfo()<< "Count All Elements in collections ="<< commomElementsDir + customElementsDir + companyElementsDir << "Elements"; } From c01549f31599f0a1fd2019f40e9ff29b25bf55b4 Mon Sep 17 00:00:00 2001 From: plc-user <74435298+plc-user@users.noreply.github.com> Date: Mon, 27 Jan 2025 17:38:06 +0100 Subject: [PATCH 2/2] machine_info: write configured directories to log\n(may have been changed with commandline-parameters) --- sources/machine_info.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/machine_info.cpp b/sources/machine_info.cpp index 56ef291c1..94100b049 100644 --- a/sources/machine_info.cpp +++ b/sources/machine_info.cpp @@ -166,11 +166,11 @@ void MachineInfo::send_info_to_debug() #if defined(Q_OS_WIN32) || defined(Q_OS_WIN64) qInfo()<< " App Config Location: see Regedit: HKEY_CURRENT_USER/Software/QElectroTech/"; #else - qInfo()<< " App Config Location:"<< QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation) +".conf/"; + qInfo()<< " App Config Location:"<< QETApp::configDir(); #endif qInfo()<< " For data-files (user-/company-collections, titleblocks, etc.):"; - qInfo()<< " App Data Location:"<< QStandardPaths::writableLocation(QStandardPaths::AppDataLocation); + qInfo()<< " App Data Location:"<< QETApp::dataDir(); qInfo()<< " Directory for project stalefiles:"; qInfo()<< " Generic Data Location:"<< QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + "/stalefiles/QElectroTech/"; // qInfo()<< " App Local DataLocation:"<< QStandardPaths::writableLocation(QStandardPaths::ApplicationsLocation);