summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-03-05 00:43:36 +0000
committerThierry Vignaud <tv@mandriva.org>2008-03-05 00:43:36 +0000
commit2592cbb477caf460d989272089dad05fc89caedb (patch)
treed748398b0a20724d76a368de5eb7b78ff4ef17ff
parent3916b5af7f8a558f26e88cfc2fb79f7cc1720764 (diff)
downloadmgaonline-2592cbb477caf460d989272089dad05fc89caedb.tar
mgaonline-2592cbb477caf460d989272089dad05fc89caedb.tar.gz
mgaonline-2592cbb477caf460d989272089dad05fc89caedb.tar.bz2
mgaonline-2592cbb477caf460d989272089dad05fc89caedb.tar.xz
mgaonline-2592cbb477caf460d989272089dad05fc89caedb.zip
(checkNetwork) do not notify if already done
-rw-r--r--NEWS1
-rwxr-xr-xmdkapplet2
2 files changed, 3 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index d6b518f6..bbd11396 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,5 @@
- mdkapplet:
o do not crash if notfiy failed on ->show (#38496)
+ o do not notify if no network if already done
o make sure notifications' text doesn't got truncated
o use more modern API to check for updates
diff --git a/mdkapplet b/mdkapplet
index 32a36c84..18f042ab 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -421,6 +421,8 @@ sub setLastTime() {
sub checkNetwork() {
if (!isNetwork()) {
+ # do not notify if already done:
+ return if member($state_global, qw(disconnected));
logIt(N_("Checking Network: seems disabled\n"));
go2State('disconnected');
} elsif (member($state_global, qw(disconnected))) {