[gnome-builder] code-index: complete progress in finish func



commit bc737a0e421a2f0695494b4320cbe0a751cfbe35
Author: Christian Hergert <chergert redhat com>
Date:   Sun Feb 3 23:05:43 2019 -0800

    code-index: complete progress in finish func

 src/plugins/code-index/gbp-code-index-executor.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/src/plugins/code-index/gbp-code-index-executor.c 
b/src/plugins/code-index/gbp-code-index-executor.c
index 79b735b1b..2f3d91d55 100644
--- a/src/plugins/code-index/gbp-code-index-executor.c
+++ b/src/plugins/code-index/gbp-code-index-executor.c
@@ -274,6 +274,7 @@ gbp_code_index_executor_execute_finish (GbpCodeIndexExecutor  *self,
                                         GAsyncResult          *result,
                                         GError               **error)
 {
+  Execute *state;
   gboolean ret;
 
   IDE_ENTRY;
@@ -282,7 +283,10 @@ gbp_code_index_executor_execute_finish (GbpCodeIndexExecutor  *self,
   g_return_val_if_fail (GBP_IS_CODE_INDEX_EXECUTOR (self), FALSE);
   g_return_val_if_fail (IDE_IS_TASK (result), FALSE);
 
-  ret = ide_task_propagate_boolean (IDE_TASK (result), error);
+  state = ide_task_get_task_data (IDE_TASK (result));
+
+  if ((ret = ide_task_propagate_boolean (IDE_TASK (result), error)))
+    ide_notification_set_progress (state->notif, 1.0);
 
   IDE_RETURN (ret);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]