aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/thread/VersionCheckTask.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2023-02-18 11:12:03 +0000
committerSaturneric <[email protected]>2023-02-18 11:12:03 +0000
commit3b062240c399bc7fb24fde3442db407386c17161 (patch)
tree06f41cd7928ae1f5ab2b935203d8399dab11373a /src/ui/thread/VersionCheckTask.cpp
parentfix: improve stability of the object-channel model (diff)
downloadGpgFrontend-3b062240c399bc7fb24fde3442db407386c17161.tar.gz
GpgFrontend-3b062240c399bc7fb24fde3442db407386c17161.zip
fix: improve the task execution model
Diffstat (limited to '')
-rw-r--r--src/ui/thread/VersionCheckTask.cpp6
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