diff options
author | saturneric <[email protected]> | 2024-01-15 17:19:34 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-01-15 17:19:34 +0000 |
commit | 34b51c5e0915cbb11c80029aaa05d96c7115fac3 (patch) | |
tree | abb530d5d93ab09ff95844b000958b79c07cd3c5 /src/ui/main_window/MainWindow.cpp | |
parent | fix: reload ui should not destroy core and module system (diff) | |
download | GpgFrontend-34b51c5e0915cbb11c80029aaa05d96c7115fac3.tar.gz GpgFrontend-34b51c5e0915cbb11c80029aaa05d96c7115fac3.zip |
fix: slove the languange settings issue
Diffstat (limited to 'src/ui/main_window/MainWindow.cpp')
-rw-r--r-- | src/ui/main_window/MainWindow.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/main_window/MainWindow.cpp b/src/ui/main_window/MainWindow.cpp index 0ae6d409..cdeb597a 100644 --- a/src/ui/main_window/MainWindow.cpp +++ b/src/ui/main_window/MainWindow.cpp @@ -129,7 +129,7 @@ void MainWindow::Init() noexcept { if (GlobalSettingStation::GetInstance() .GetSettings() - .value("general/clear_gpg_password_cache", false) + .value("basic/clear_gpg_password_cache", false) .toBool()) { if (GpgFrontend::GpgAdvancedOperator::ClearGpgPasswordCache()) { GF_UI_LOG_DEBUG("clear gpg password cache done"); @@ -178,8 +178,8 @@ void MainWindow::restore_settings() { if (key_server.default_server < 0) key_server.default_server = 0; auto settings = GlobalSettingStation::GetInstance().GetSettings(); - if (!settings.contains("general/non_ascii_when_export")) { - settings.setValue("general/non_ascii_when_export", true); + if (!settings.contains("basic/non_ascii_when_export")) { + settings.setValue("basic/non_ascii_when_export", true); } // set appearance |