aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2021-03-29 17:15:55 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-05-03 22:49:46 +0200
commit0ded1c9a16b93da1dada375fb2a0a3c3db010284 (patch)
treef9262e7a5f26eb5d3b48808724fb6cd55b0f6ca8
parentf188111464a0741f18ec1c6735539236f7860505 (diff)
downloadayatana-indicator-power-0ded1c9a16b93da1dada375fb2a0a3c3db010284.tar.gz
ayatana-indicator-power-0ded1c9a16b93da1dada375fb2a0a3c3db010284.tar.bz2
ayatana-indicator-power-0ded1c9a16b93da1dada375fb2a0a3c3db010284.zip
Always show indicator, use icon policy only on Lomiri
-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;