[baobab/reroot-view] Use the busy mouse cursor while mounting
- From: Stefano Facchini <sfacchini src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [baobab/reroot-view] Use the busy mouse cursor while mounting
- Date: Thu, 25 Jun 2020 17:50:43 +0000 (UTC)
commit eb5ccf8fe458908edb2082c9acc8bea64bac3b5a
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]