summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rwxr-xr-xdraksnapshot-applet3
2 files changed, 4 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index f658aa3..9eaae7e 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,6 @@
- applet:
o do not skip initial check
+ o refresh cache of USB devices list
o run check every 2s instead of every 5mns
Version 0.2 - Mon Mar 3 2008, Thierry Vignaud
diff --git a/draksnapshot-applet b/draksnapshot-applet
index b3221c7..99af9f4 100755
--- a/draksnapshot-applet
+++ b/draksnapshot-applet
@@ -144,6 +144,9 @@ sub silentCheck() {
my $w = $::main_window ? $::main_window->window : undef;
gtkset_mousecursor_wait($w);
+ # force refreshing cache:
+ detect_devices::probeall_update_cache();
+
# are there any updates ?
if (@discs = grep { $_->{usb_bus} } detect_devices::hds()) {