[baobab/reroot-view: 34/35] Use the busy mouse cursor while mounting



commit 5740b1d67b2bda7b4f60ac5b853287ffce2ba84e
Author: Stefano Facchini <stefano facchini gmail com>
Date:   Thu Jun 25 19:48:15 2020 +0200

    Use the busy mouse cursor while mounting
    
    It could take a while so better show that something is going on.

 src/baobab-window.vala | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/baobab-window.vala b/src/baobab-window.vala
index d91defa..88e206a 100644
--- a/src/baobab-window.vala
+++ b/src/baobab-window.vala
@@ -236,11 +236,13 @@ namespace Baobab {
         }
 
         void location_activated (Location location) {
+            set_busy (true);
             location.mount_volume.begin ((location_, res) => {
                 try {
                     location.mount_volume.end (res);
                     scan_location (location);
                 } catch (Error e) {
+                    set_busy (false);
                     message (_("Could not analyze volume."), e.message, Gtk.MessageType.ERROR);
                 }
             });


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