aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/thread/Task.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2023-10-15 08:17:28 +0000
committersaturneric <[email protected]>2023-10-15 08:17:28 +0000
commitc1a5fff98cab4adf04210ba8120459b8e87a8fa3 (patch)
tree0c46d986628b1b910a3affbadf196e234a68c34d /src/core/thread/Task.cpp
parentfeat: support flatpack build and install (diff)
downloadGpgFrontend-c1a5fff98cab4adf04210ba8120459b8e87a8fa3.tar.gz
GpgFrontend-c1a5fff98cab4adf04210ba8120459b8e87a8fa3.zip
fix: solve some issues on linux .desktop file
Diffstat (limited to 'src/core/thread/Task.cpp')
-rw-r--r--src/core/thread/Task.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/thread/Task.cpp b/src/core/thread/Task.cpp
index 7173b69e..a11d23d3 100644
--- a/src/core/thread/Task.cpp
+++ b/src/core/thread/Task.cpp
@@ -90,10 +90,8 @@ std::string GpgFrontend::Thread::Task::GetUUID() const { return uuid_; }
bool GpgFrontend::Thread::Task::GetSequency() const { return sequency_; }
-void GpgFrontend::Thread::Task::SetFinishAfterRun(
- bool run_callback_after_runnable_finished) {
- this->run_callback_after_runnable_finished_ =
- run_callback_after_runnable_finished;
+void GpgFrontend::Thread::Task::HoldOnLifeCycle(bool hold_on) {
+ this->run_callback_after_runnable_finished_ = !hold_on;
}
void GpgFrontend::Thread::Task::SetRTN(int rtn) { this->rtn_ = rtn; }