diff options
author | saturneric <[email protected]> | 2024-12-01 22:51:06 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-12-01 22:51:06 +0000 |
commit | 2b07460aa7ae736362248c04ed7ddfd3f74ff869 (patch) | |
tree | fa360678527c3fef6ef7093b757ebdc4aceee15e /src/cmd.cpp | |
parent | feat: improve ui of about dialog (diff) | |
download | GpgFrontend-2b07460aa7ae736362248c04ed7ddfd3f74ff869.tar.gz GpgFrontend-2b07460aa7ae736362248c04ed7ddfd3f74ff869.zip |
translation: update ts files
Diffstat (limited to 'src/cmd.cpp')
-rw-r--r-- | src/cmd.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/cmd.cpp b/src/cmd.cpp index 89a0be95..c9cdbc17 100644 --- a/src/cmd.cpp +++ b/src/cmd.cpp @@ -35,13 +35,13 @@ #include <qtextstream.h> #include "core/GpgCoreInit.h" +#include "core/function/GlobalSettingStation.h" #include "core/module/ModuleManager.h" #include "core/utils/BuildInfoUtils.h" // GpgFrontend #include "GpgFrontendContext.h" -#include "core/utils/GpgUtils.h" #include "test/GpgFrontendTest.h" namespace GpgFrontend { @@ -79,7 +79,14 @@ auto PrintEnvInfo() -> int { stream << Tr("OpenSSL Version: ") << GetProjectOpenSSLVersion() << '\n'; stream << Tr("Libarchive Version: ") << GetProjectLibarchiveVersion() << '\n'; + stream << '\n'; + + auto& setting_station = GlobalSettingStation::GetInstance(); + stream << Tr("App Data Path: ") << setting_station.GetAppDataPath() << '\n'; + stream << Tr("App Log Path: ") << setting_station.GetAppLogPath() << '\n'; + stream << Tr("Modules Path: ") << setting_station.GetModulesDir() << '\n'; + stream << Tr("App Binary Directory: ") << setting_station.GetAppDir() << '\n'; stream << '\n'; @@ -152,7 +159,7 @@ auto PrintEnvInfo() -> int { stream << '\n'; int index = 0; - auto key_dbs = GetGpgKeyDatabaseInfos(); + auto key_dbs = GetKeyDatabaseInfoBySettings(default_database_path); for (const auto& key_database : key_dbs) { stream << Tr("Key Database [") << index++ << "] " << Tr("Name: ") << key_database.name << " " << Tr("-> Path: ") << key_database.path |