aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-05-03 22:54:54 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-05-03 22:54:54 +0200
commit773cf3e9005941241a8f4ee3caefd30650970967 (patch)
treef9262e7a5f26eb5d3b48808724fb6cd55b0f6ca8
parentf188111464a0741f18ec1c6735539236f7860505 (diff)
parent0ded1c9a16b93da1dada375fb2a0a3c3db010284 (diff)
downloadayatana-indicator-power-773cf3e9005941241a8f4ee3caefd30650970967.tar.gz
ayatana-indicator-power-773cf3e9005941241a8f4ee3caefd30650970967.tar.bz2
ayatana-indicator-power-773cf3e9005941241a8f4ee3caefd30650970967.zip
Merge branch 'tari01-pr/always-show'
Attributes GH PR #24: https://github.com/AyatanaIndicators/ayatana-indicator-power/pull/24
-rw-r--r--src/service.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/service.c b/src/service.c
index f36c63f..db1fad5 100644
--- a/src/service.c
+++ b/src/service.c
@@ -401,6 +401,11 @@ count_batteries (GList * devices, int *total, int *inuse)
static gboolean
should_be_visible (IndicatorPowerService * self)
{
+ if (!is_lomiri())
+ {
+ return TRUE;
+ }
+
gboolean visible = TRUE;
priv_t * p = self->priv;