[baobab] location-list: Show an "Unmounted" label for unmounted volumes



commit 17b6127db3251328a98509168671020f3b043f6a
Author: Stefano Facchini <stefano facchini gmail com>
Date:   Sun Oct 29 11:09:27 2017 +0100

    location-list: Show an "Unmounted" label for unmounted volumes

 src/baobab-location-list.vala |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/baobab-location-list.vala b/src/baobab-location-list.vala
index 63043c8..75d62e6 100644
--- a/src/baobab-location-list.vala
+++ b/src/baobab-location-list.vala
@@ -77,6 +77,8 @@ namespace Baobab {
                     // useful for some remote mounts where we don't know the
                     // size but do have a usage figure
                     available_label.label = _("%s Used").printf (format_size (location.used));
+                } else if (location.mount == null && location.volume.can_mount ()) {
+                    available_label.label = _("Unmounted");
                 }
             }
         }


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