[baobab/reroot-view: 31/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: 31/35] Use the busy mouse cursor while mounting
- Date: Sun, 28 Jun 2020 11:00:44 +0000 (UTC)
commit de00c1b9b03430d8d1fe330d55c87c5d1ac49e02
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]