[gnome-disk-utility] Also show spinner in device tree if a MD-RAID scrub is in progress



commit de3a1f42894a25ea0c0d5f57283ced1e897ab4e4
Author: David Zeuthen <zeuthen gmail com>
Date:   Fri Dec 21 11:57:04 2012 -0500

    Also show spinner in device tree if a MD-RAID scrub is in progress
    
    Signed-off-by: David Zeuthen <zeuthen gmail com>

 src/disks/gdudevicetreemodel.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/disks/gdudevicetreemodel.c b/src/disks/gdudevicetreemodel.c
index ab3dfa0..1b0d955 100644
--- a/src/disks/gdudevicetreemodel.c
+++ b/src/disks/gdudevicetreemodel.c
@@ -1146,6 +1146,10 @@ update_mdraid (GduDeviceTreeModel *model,
 
   jobs_running = mdraid_has_jobs (model, mdraid);
 
+  /* also show the spinner if a sync op is in progress */
+  if (udisks_mdraid_get_sync_completed (mdraid) > 0.0)
+    jobs_running = TRUE;
+
   gtk_tree_model_get (GTK_TREE_MODEL (model),
                       &iter,
                       GDU_DEVICE_TREE_MODEL_COLUMN_PULSE, &pulse,



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