From 34b51c5e0915cbb11c80029aaa05d96c7115fac3 Mon Sep 17 00:00:00 2001 From: saturneric Date: Tue, 16 Jan 2024 01:19:34 +0800 Subject: fix: slove the languange settings issue --- src/ui/main_window/MainWindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/ui/main_window/MainWindow.cpp') 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 -- cgit v1.2.3