mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-11-02 19:02:00 +00:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user