summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmgaapplet4
1 files changed, 1 insertions, 3 deletions
diff --git a/mgaapplet b/mgaapplet
index cfd44340..b4e9cec3 100755
--- a/mgaapplet
+++ b/mgaapplet
@@ -690,9 +690,7 @@ sub setState {
my @invisible_states = qw(delayed okay disconnected locked);
# do not show icon while checking if previously hidden:
- if (member($state, @invisible_states)
- or $state eq 'busy' && member($previous_state, @invisible_states))
- {
+ if (!$::testing && (member($state, @invisible_states) or $state eq 'busy' && member($previous_state, @invisible_states))) {
$is_plasma ? $icon->set_status('STATUS_NOTIFIER_STATUS_PASSIVE') : $icon->set_visible(0);
}
else {