diff options
author | Saturneric <[email protected]> | 2023-02-07 07:16:45 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2023-02-07 07:16:45 +0000 |
commit | a49c6605244d656d4a4b72e95fbbcbe83372d363 (patch) | |
tree | ba28d451a0c78041f36e0e8be7ca30114ddce4ef /src/main.cpp | |
parent | feat: add a custom pinentry hook for sandbox mode in macOS (diff) | |
download | GpgFrontend-a49c6605244d656d4a4b72e95fbbcbe83372d363.tar.gz GpgFrontend-a49c6605244d656d4a4b72e95fbbcbe83372d363.zip |
feat: use custom password dialog now
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/src/main.cpp b/src/main.cpp index 52a20334..01964f6a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -151,14 +151,21 @@ int main(int argc, char* argv[]) { return_from_event_loop_code = CRASH_CODE; } - SPDLOG_INFO("restart loop refresh"); + SPDLOG_INFO("restart loop refresh, event loop code: {}", + return_from_event_loop_code); } while (return_from_event_loop_code == RESTART_CODE); - // reset core - GpgFrontend::ResetGpgFrontendCore(); - - // log for debug - SPDLOG_INFO("deep restart or cash loop refresh"); + if (return_from_event_loop_code == DEEP_RESTART_CODE || + return_from_event_loop_code == CRASH_CODE) { + // reset core + GpgFrontend::ResetGpgFrontendCore(); + // log for debug + SPDLOG_INFO("deep restart or cash loop refresh"); + } else { + // log for debug + SPDLOG_INFO("need to close application, event loop code: {}", + return_from_event_loop_code); + } // deep restart mode } while (return_from_event_loop_code == DEEP_RESTART_CODE || |