fix(ui-new): on/off as the words ON / OFF -- the pill switch read as a battery

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Jakub
2026-10-06 14:09:22 +02:00
co-authored by Claude Opus 5.5
parent 3326881dc1
commit 1af8ce1a85
2 changed files with 9 additions and 22 deletions
+1 -1
View File
@@ -101,7 +101,7 @@ struct PopupMenu {
return true;
}
static int valueWidth(DisplayDriver& d, const char* v) {
return (!strcmp(v, "ON") || !strcmp(v, "OFF")) ? info::switchW(d) : d.getTextWidth(v);
return d.getTextWidth(v);
}
int render(DisplayDriver& display) {