summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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))) {