diff options
-rw-r--r-- | NEWS | 1 | ||||
-rwxr-xr-x | draksnapshot-applet | 7 |
2 files changed, 8 insertions, 0 deletions
@@ -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; |