From c9783d097b03bdac095439b3b5ccafead7bcf26b Mon Sep 17 00:00:00 2001 From: sctanf <36978460+sctanf@users.noreply.github.com> Date: Sun, 14 Dec 2025 14:17:03 -0600 Subject: [PATCH] show voltage in less situations --- gui/src/components/tracker/TrackerBattery.tsx | 7 +++++-- gui/src/components/tracker/TrackerCard.tsx | 1 + gui/src/components/tracker/TrackersTable.tsx | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gui/src/components/tracker/TrackerBattery.tsx b/gui/src/components/tracker/TrackerBattery.tsx index b839abb94..d867f63e3 100644 --- a/gui/src/components/tracker/TrackerBattery.tsx +++ b/gui/src/components/tracker/TrackerBattery.tsx @@ -8,6 +8,7 @@ export function TrackerBattery({ voltage, runtime, disabled, + moreInfo = false, textColor = 'primary', }: { /** @@ -17,6 +18,7 @@ export function TrackerBattery({ voltage?: number | null; runtime?: bigint | null; disabled?: boolean; + moreInfo?: boolean; textColor?: string; }) { const { currentLocales } = useLocaleConfig(); @@ -30,7 +32,8 @@ export function TrackerBattery({ }); const charging = (voltage || 0) > 4.3; - const showVoltage = voltage && config?.debug; + const debug = config?.debug || config?.devSettings.moreInfo; + const showVoltage = moreInfo && voltage && debug; return (