From 1ac0b0f69997968a65d78cfbc09d87c6b25d7441 Mon Sep 17 00:00:00 2001 From: Ratchanan Srirattanamet Date: Thu, 15 Jun 2023 00:06:46 +0700 Subject: 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 --- src/service.c | 1 + 1 file changed, 1 insertion(+) 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)); } -- cgit v1.2.3