user can disable battery change hint (#2612)

* theme fix again

* _

* _
This commit is contained in:
sommermorgentraum 2025-04-06 10:24:50 +08:00 committed by GitHub
parent 31082c63af
commit 809abb6842
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 29 additions and 7 deletions

View file

@ -343,7 +343,7 @@ void SystemStatusView::on_battery_data(const BatteryStateMessage* msg) {
// Check if charging state changed to charging
static bool was_charging = false;
if (msg->on_charger && !was_charging) {
if (msg->on_charger && !was_charging && pmem::ui_battery_charge_hint()) {
// Only show charging modal when transitioning to charging state
nav_.display_modal(
"CHARGING",