From 5bcf07c5f6a3429bc787c31d26edd796c8cad9c6 Mon Sep 17 00:00:00 2001 From: saturneric Date: Wed, 17 Jan 2024 01:41:52 +0800 Subject: fix: solve discovered issues --- src/ui/main_window/MainWindow.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 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 31d53bd1..7f75574e 100644 --- a/src/ui/main_window/MainWindow.cpp +++ b/src/ui/main_window/MainWindow.cpp @@ -131,11 +131,10 @@ void MainWindow::Init() noexcept { .GetSettings() .value("basic/clear_gpg_password_cache", false) .toBool()) { - if (GpgFrontend::GpgAdvancedOperator::ClearGpgPasswordCache()) { - GF_UI_LOG_DEBUG("clear gpg password cache done"); - } else { - GF_UI_LOG_ERROR("clear gpg password cache error"); - } + GpgFrontend::GpgAdvancedOperator::ClearGpgPasswordCache( + [](int, DataObjectPtr) { + + }); } }); -- cgit v1.2.3