aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRatchanan Srirattanamet <ratchanan@ubports.com>2023-06-15 00:06:46 +0700
committerRatchanan Srirattanamet <ratchanan@ubports.com>2023-07-11 16:42:38 +0700
commit1ac0b0f69997968a65d78cfbc09d87c6b25d7441 (patch)
tree5e96863305d6f10f05d4aa397338505a79e7010c
parent7737c05592782133b241fca9c750ca6f582ec3ad (diff)
downloadayatana-indicator-power-1ac0b0f69997968a65d78cfbc09d87c6b25d7441.tar.gz
ayatana-indicator-power-1ac0b0f69997968a65d78cfbc09d87c6b25d7441.tar.bz2
ayatana-indicator-power-1ac0b0f69997968a65d78cfbc09d87c6b25d7441.zip
src/service.c: also update devices section on phone profile
Since there's no longer an action to update the battery level, now the submenu itself has to also be updated on the phone. Bug-UBports: https://gitlab.com/ubports/development/core/lomiri/-/issues/70
-rw-r--r--src/service.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/service.c b/src/service.c
index a7b3f10..3e24945 100644
--- a/src/service.c
+++ b/src/service.c
@@ -726,6 +726,7 @@ rebuild_now (IndicatorPowerService * self, guint sections)
if (sections & SECTION_DEVICES)
{
+ rebuild_section (phone->submenu, 0, create_devices_section (self, PROFILE_PHONE));
rebuild_section (desktop->submenu, 0, create_devices_section (self, PROFILE_DESKTOP));
rebuild_section (greeter->submenu, 0, create_devices_section (self, PROFILE_DESKTOP_GREETER));
}