summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rwxr-xr-xdraksnapshot-applet7
2 files changed, 8 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index fa838a3..212d9fd 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,5 @@
- applet:
+ o hide applet if all discs got umounted (#41176)
o use HAL in order to detect discs avaible for backup,
thus not detecting some internal SATA discs (#41107)
- configurator:
diff --git a/draksnapshot-applet b/draksnapshot-applet
index e50c042..ff2a9fc 100755
--- a/draksnapshot-applet
+++ b/draksnapshot-applet
@@ -102,6 +102,13 @@ if ($dbus) {
my $old_time;
$con->add_filter(sub {
my ($_bus, $msg) = @_; # perl_checker: Net::DBus::Binding::Message::Signal
+
+ # hide if needed (evals really are needed):
+ if (eval { 'DeviceRemoved' eq $msg->get_member() }) {
+ eval { firstCheck() };
+ return 0;
+ }
+
return 0 if $msg->get_member ne 'DeviceAdded';
my $hal = $dbus->get_service($hal_dn);
my $bool;