summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94>2008-03-05 05:12:06 +0000
committertv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94>2008-03-05 05:12:06 +0000
commit448d67dad2e14949458738ea103fd3c460d97ed7 (patch)
treeff9a03e22dfdc682182151c8f0ebb218de917076
parentc836ea63bc96b57940e654d7645c9ce4e6d36e16 (diff)
downloaddraksnapshot-448d67dad2e14949458738ea103fd3c460d97ed7.tar
draksnapshot-448d67dad2e14949458738ea103fd3c460d97ed7.tar.gz
draksnapshot-448d67dad2e14949458738ea103fd3c460d97ed7.tar.bz2
draksnapshot-448d67dad2e14949458738ea103fd3c460d97ed7.tar.xz
draksnapshot-448d67dad2e14949458738ea103fd3c460d97ed7.zip
(silentCheck) force refreshing cache
git-svn-id: http://svn.mandriva.com/svn/soft/draksnapshot/trunk@238622 99302b65-d5f7-0310-b3dd-f8cd6f4e3d94
-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()) {