diff options
author | saturneric <[email protected]> | 2024-01-05 08:11:24 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-01-05 08:11:24 +0000 |
commit | 3c40fa27823e70215261d3845275360f85e59623 (patch) | |
tree | 7c39090027d8ad7fbe1662d7a73cc5748a2d5b52 /src/ui/GpgFrontendUIInit.cpp | |
parent | feat: switch to portable mode by adding a txt file under bin path (diff) | |
download | GpgFrontend-3c40fa27823e70215261d3845275360f85e59623.tar.gz GpgFrontend-3c40fa27823e70215261d3845275360f85e59623.zip |
fix: slove some known issues
Diffstat (limited to 'src/ui/GpgFrontendUIInit.cpp')
-rw-r--r-- | src/ui/GpgFrontendUIInit.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ui/GpgFrontendUIInit.cpp b/src/ui/GpgFrontendUIInit.cpp index 9849fab2..99a9541f 100644 --- a/src/ui/GpgFrontendUIInit.cpp +++ b/src/ui/GpgFrontendUIInit.cpp @@ -92,14 +92,14 @@ void WaitEnvCheckingProcess() { exit(0); }); - auto env_state = Module::RetrieveRTValueTypedOrDefault<>( - "core", "env.state.basic", std::string{"0"}); + auto env_state = + Module::RetrieveRTValueTypedOrDefault<>("core", "env.state.basic", 0); SPDLOG_DEBUG("ui is ready to wating for env initialized, env_state: {}", env_state); // check twice to avoid some unlucky sitations - if (env_state == "1") { + if (env_state == 1) { SPDLOG_DEBUG("env state turned initialized before the looper start"); waiting_dialog->finished(0); waiting_dialog->deleteLater(); @@ -199,8 +199,8 @@ void InitGpgFrontendUI(QApplication* /*app*/) { QNetworkProxy::setApplicationProxy(QNetworkProxy::NoProxy); } - if (Module::RetrieveRTValueTypedOrDefault<>("core", "env.state.basic", - std::string{"0"}) == "0") { + if (Module::RetrieveRTValueTypedOrDefault<>("core", "env.state.basic", 0) == + 0) { WaitEnvCheckingProcess(); } } |