From 6ea9e1d86cffb729775aa429310302b93cace2a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Buclin?= Date: Sat, 4 Mar 2017 19:34:21 +0100 Subject: When --testing is passed to mgaapplet, always show the status icon --- mgaapplet | 4 +--- 1 file changed, 1 insertion(+), 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 { -- cgit v1.2.1