aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2024-07-03 16:25:08 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2024-07-03 16:25:08 +0200
commit948f6bee4b081274a07d6df177d98ec8ef4d7e13 (patch)
tree79912378ecda8fbe6fc19a88e24a52bf8f615928
parent4f075bc2ca42f58f21074ae1b9cd3342ea6999ec (diff)
parentbf76707bdcb89c0b89f733791751b56e23575122 (diff)
downloadayatana-indicator-power-948f6bee4b081274a07d6df177d98ec8ef4d7e13.tar.gz
ayatana-indicator-power-948f6bee4b081274a07d6df177d98ec8ef4d7e13.tar.bz2
ayatana-indicator-power-948f6bee4b081274a07d6df177d98ec8ef4d7e13.zip
Merge branch 'tari01-pr/greeter-power-statistics'
Attributes GH PR #94: https://github.com/AyatanaIndicators/ayatana-indicator-power/pull/94
-rw-r--r--src/service.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/service.c b/src/service.c
index a87c60e..49bf018 100644
--- a/src/service.c
+++ b/src/service.c
@@ -1,6 +1,6 @@
/*
* Copyright 2013-2016 Canonical Ltd.
- * Copyright 2021-2023 Robert Tari
+ * Copyright 2021-2024 Robert Tari
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 3, as published
@@ -562,7 +562,10 @@ create_devices_section (IndicatorPowerService * self, int profile)
g_object_unref (icon);
}
- g_menu_item_set_action_and_target(item, "indicator.activate-statistics", "s", indicator_power_device_get_object_path (device));
+ if (profile != PROFILE_DESKTOP_GREETER)
+ {
+ g_menu_item_set_action_and_target(item, "indicator.activate-statistics", "s", indicator_power_device_get_object_path (device));
+ }
}
g_menu_append_item (menu, item);