diff options
author | tv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94> | 2008-09-29 17:04:12 +0000 |
---|---|---|
committer | tv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94> | 2008-09-29 17:04:12 +0000 |
commit | 1abfe8602f1f9944afb8825572df1d1b8cd2f84b (patch) | |
tree | 65d0622947d87475da1ad110eb3dd11c95d71d81 | |
parent | 428a796c627297e67d6c1e74855c25a981292dd8 (diff) | |
download | draksnapshot-1abfe8602f1f9944afb8825572df1d1b8cd2f84b.tar draksnapshot-1abfe8602f1f9944afb8825572df1d1b8cd2f84b.tar.gz draksnapshot-1abfe8602f1f9944afb8825572df1d1b8cd2f84b.tar.bz2 draksnapshot-1abfe8602f1f9944afb8825572df1d1b8cd2f84b.tar.xz draksnapshot-1abfe8602f1f9944afb8825572df1d1b8cd2f84b.zip |
hide applet if all discs got umounted (#41176)
git-svn-id: http://svn.mandriva.com/svn/soft/draksnapshot/trunk@247034 99302b65-d5f7-0310-b3dd-f8cd6f4e3d94
-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; |