mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-08-03 10:46:12 +00:00
fix: clarify advert button labels in NearbyScreen
Scan does not discover others — it announces our own presence. Updated labels: "Scan for nodes"→"Send my advert", "SCANNING..."→"ADVERTISING...", "[M]=Scan"→"[M]=Advert". Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
f434852706
commit
9c4dc0039a
@@ -242,7 +242,7 @@ public:
|
|||||||
// ── list view ────────────────────────────────────────────────────────────
|
// ── list view ────────────────────────────────────────────────────────────
|
||||||
display.setColor(DisplayDriver::LIGHT);
|
display.setColor(DisplayDriver::LIGHT);
|
||||||
if (_scanning) {
|
if (_scanning) {
|
||||||
display.drawTextCentered(display.width() / 2, 0, "SCANNING...");
|
display.drawTextCentered(display.width() / 2, 0, "ADVERTISING...");
|
||||||
} else {
|
} else {
|
||||||
char title[22];
|
char title[22];
|
||||||
snprintf(title, sizeof(title), "NEARBY[%s]", FILTER_LABELS[_filter]);
|
snprintf(title, sizeof(title), "NEARBY[%s]", FILTER_LABELS[_filter]);
|
||||||
@@ -252,7 +252,7 @@ public:
|
|||||||
|
|
||||||
if (_count == 0) {
|
if (_count == 0) {
|
||||||
display.drawTextCentered(display.width() / 2, 28, _scanning ? "Waiting..." : "No contacts found");
|
display.drawTextCentered(display.width() / 2, 28, _scanning ? "Waiting..." : "No contacts found");
|
||||||
display.drawTextCentered(display.width() / 2, 40, "[M]=Scan");
|
display.drawTextCentered(display.width() / 2, 40, "[M]=Advert");
|
||||||
} else {
|
} else {
|
||||||
for (int i = 0; i < VISIBLE && (_scroll + i) < _count; i++) {
|
for (int i = 0; i < VISIBLE && (_scroll + i) < _count; i++) {
|
||||||
int idx = _scroll + i;
|
int idx = _scroll + i;
|
||||||
@@ -323,7 +323,7 @@ public:
|
|||||||
if (c == KEY_CANCEL) { _task->gotoToolsScreen(); return true; }
|
if (c == KEY_CANCEL) { _task->gotoToolsScreen(); return true; }
|
||||||
if (c == KEY_CONTEXT_MENU) {
|
if (c == KEY_CONTEXT_MENU) {
|
||||||
_ctx_menu.begin("Options", 2);
|
_ctx_menu.begin("Options", 2);
|
||||||
_ctx_menu.addItem("Scan for nodes");
|
_ctx_menu.addItem("Send my advert");
|
||||||
_ctx_menu.addItem("Back");
|
_ctx_menu.addItem("Back");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user