From c0ec19c496591efe970da26c819c2a0dc86c363d Mon Sep 17 00:00:00 2001 From: jacqueline Date: Wed, 17 Jan 2024 15:57:12 +1100 Subject: fix some properties that got copied wrong --- src/ui/ui_fsm.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ui') diff --git a/src/ui/ui_fsm.cpp b/src/ui/ui_fsm.cpp index 1c30e822..20d52f8e 100644 --- a/src/ui/ui_fsm.cpp +++ b/src/ui/ui_fsm.cpp @@ -113,7 +113,7 @@ lua::Property UiState::sPlaybackPlaying{ return true; }}; -lua::Property UiState::sPlaybackTrack{0}; +lua::Property UiState::sPlaybackTrack{}; lua::Property UiState::sPlaybackPosition{0}; lua::Property UiState::sQueuePosition{0}; @@ -263,6 +263,7 @@ void UiState::react(const internal::DismissAlerts&) { void UiState::react(const system_fsm::BatteryStateChanged& ev) { sBatteryPct.Update(static_cast(ev.new_state.percent)); sBatteryMv.Update(static_cast(ev.new_state.millivolts)); + sBatteryCharging.Update(ev.new_state.is_charging); } void UiState::react(const audio::QueueUpdate&) { -- cgit v1.2.3