[baobab/reroot-view: 30/35] Use the busy mouse cursor while mounting
- From: Stefano Facchini <sfacchini src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [baobab/reroot-view: 30/35] Use the busy mouse cursor while mounting
- Date: Tue, 30 Jun 2020 14:06:17 +0000 (UTC)
commit 32f927cf5e59cc720c1ae0620f6b4a344a0ea416
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 05ef296..dfa3bf0 100644
--- a/src/baobab-window.vala
+++ b/src/baobab-window.vala
@@ -240,11 +240,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]