diff options
author | Saturneric <[email protected]> | 2023-02-18 11:12:03 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2023-02-18 11:12:03 +0000 |
commit | 3b062240c399bc7fb24fde3442db407386c17161 (patch) | |
tree | 06f41cd7928ae1f5ab2b935203d8399dab11373a /src/ui/thread/VersionCheckTask.cpp | |
parent | fix: improve stability of the object-channel model (diff) | |
download | GpgFrontend-3b062240c399bc7fb24fde3442db407386c17161.tar.gz GpgFrontend-3b062240c399bc7fb24fde3442db407386c17161.zip |
fix: improve the task execution model
Diffstat (limited to '')
-rw-r--r-- | src/ui/thread/VersionCheckTask.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/thread/VersionCheckTask.cpp b/src/ui/thread/VersionCheckTask.cpp index 08571223..9bda0ddd 100644 --- a/src/ui/thread/VersionCheckTask.cpp +++ b/src/ui/thread/VersionCheckTask.cpp @@ -65,7 +65,7 @@ void VersionCheckTask::Run() { } catch (...) { SPDLOG_ERROR("unknown error occurred"); - emit SignalTaskFinished(); + emit SignalTaskRunnableEnd(-1); } } @@ -129,7 +129,7 @@ void VersionCheckTask::slot_parse_latest_version_info() { &VersionCheckTask::slot_parse_current_version_info); } catch (...) { SPDLOG_ERROR("current version request create error"); - emit SignalTaskFinished(); + emit SignalTaskRunnableEnd(-1); } } @@ -166,7 +166,7 @@ void VersionCheckTask::slot_parse_current_version_info() { } emit SignalUpgradeVersion(version_); - emit SignalTaskFinished(); + emit SignalTaskRunnableEnd(0); } } // namespace GpgFrontend::UI |