summaryrefslogtreecommitdiffstats
path: root/mgaapplet
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2017-03-04 19:34:21 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2017-03-04 19:34:21 +0100
commit6ea9e1d86cffb729775aa429310302b93cace2a0 (patch)
tree70db3957d2653bd1964d8cbf060b0b9510414be9 /mgaapplet
parentc6bf85bfde585dc1226f9daaa3748939dd40d1b8 (diff)
downloadmgaonline-6ea9e1d86cffb729775aa429310302b93cace2a0.tar
mgaonline-6ea9e1d86cffb729775aa429310302b93cace2a0.tar.gz
mgaonline-6ea9e1d86cffb729775aa429310302b93cace2a0.tar.bz2
mgaonline-6ea9e1d86cffb729775aa429310302b93cace2a0.tar.xz
mgaonline-6ea9e1d86cffb729775aa429310302b93cace2a0.zip
When --testing is passed to mgaapplet, always show the status icon
Diffstat (limited to 'mgaapplet')
-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 {