mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-11-02 19:02:00 +00:00
feat(ui): drop echo toasts for actions the screen already shows
L1: Counters reset, Trail reset, Contact added/deleted, Logged in (admin), Logged out, Channel deleted, Share target / Bot channel / Bot room set, PIN set/cleared, Preset saved/deleted, and Unpinned on the favourites grid. L2: Channel deleted, Counters reset, Region/Preset/Scope/Waypoint deleted, Target cleared, Trail cleared, Message history deleted, Contact added/deleted. Failures and Unpinned where the item leaves the screen stay. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -145,7 +145,6 @@ void UITask::channelAction(uint8_t act) {
|
||||
if (!tapConfirmed(s_del_lbl, "Delete?")) break;
|
||||
chanctl::remove(idx);
|
||||
navClosePopup();
|
||||
showToast("Channel deleted");
|
||||
showChats();
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -383,5 +383,4 @@ void UITask::diagReset() {
|
||||
diag::resetCounters();
|
||||
navClosePopup();
|
||||
refreshDiag();
|
||||
showToast("Counters reset");
|
||||
}
|
||||
|
||||
@@ -91,7 +91,6 @@ void UITask::mapRegionAction(uint8_t act) {
|
||||
mapview::labels::flush();
|
||||
mapview::s_cache.invalidate();
|
||||
mapRegionsPopup();
|
||||
showToast("Region deleted");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -540,7 +540,6 @@ void UITask::navPick(int code) {
|
||||
if (navmap::s_tb.active()) { navmap::s_tb.stop(); showToast("Track back stopped"); break; }
|
||||
_core->locator.clearTarget();
|
||||
prefsSave();
|
||||
showToast("Target cleared");
|
||||
break;
|
||||
case navmap::T_WAYPOINT: {
|
||||
if (idx >= _core->waypoints.count()) return;
|
||||
@@ -734,7 +733,6 @@ void UITask::navWaypointAction(uint8_t act) {
|
||||
if (!tapConfirmed(_nav_del_lbl, "Delete?")) break;
|
||||
_core->waypoints.remove(i);
|
||||
navClosePopup();
|
||||
showToast("Waypoint deleted");
|
||||
rebuildMapMarkers();
|
||||
layoutMap();
|
||||
refreshNavBar();
|
||||
@@ -1332,7 +1330,6 @@ void UITask::navToolAction(uint8_t act) {
|
||||
case navmap::TL_TRAIL_RESET:
|
||||
if (!tapConfirmed(_nav_reset_lbl, "Reset?")) return;
|
||||
tr.reset();
|
||||
showToast("Trail cleared");
|
||||
rebuildMapMarkers();
|
||||
layoutMap();
|
||||
break;
|
||||
|
||||
@@ -99,7 +99,6 @@ void UITask::presetAction(uint8_t act) {
|
||||
prefsSave();
|
||||
navClosePopup();
|
||||
rebuildRadio();
|
||||
showToast("Preset deleted");
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -217,7 +216,6 @@ void UITask::scopeAction(uint8_t act) {
|
||||
if (s_scope > 0) the_mesh.removeScope((uint8_t)s_scope);
|
||||
navClosePopup();
|
||||
buildScopes();
|
||||
showToast("Scope deleted");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -355,7 +355,6 @@ void UITask::storageClearHistory() {
|
||||
s_archive.clearAll();
|
||||
_core->history.clearAll();
|
||||
_core->markAllRead();
|
||||
showToast("Message history deleted");
|
||||
startWalk();
|
||||
}
|
||||
|
||||
|
||||
@@ -3787,7 +3787,6 @@ void UITask::nodeAction(uint8_t action) {
|
||||
break;
|
||||
case NODE_ADD:
|
||||
if (the_mesh.addDiscoveredContact(e.pub_key, e.name, e.type)) {
|
||||
showToast("Contact added");
|
||||
_screen = SCR_NEARBY;
|
||||
buildNearby();
|
||||
} else {
|
||||
@@ -3826,7 +3825,6 @@ void UITask::nodeAction(uint8_t action) {
|
||||
break;
|
||||
}
|
||||
if (the_mesh.deleteContactByKey(e.pub_key)) {
|
||||
showToast("Contact deleted");
|
||||
_screen = SCR_NEARBY;
|
||||
buildNearby();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user