fix(route): a stored route longer than the editor's 7 hops can't be saved cut short

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Jakub
2026-10-15 18:41:18 +02:00
co-authored by Claude Opus 5.5
parent d85a3a1eef
commit 1f47fc56cd
3 changed files with 11 additions and 4 deletions
@@ -294,7 +294,7 @@ void UITask::routeAct(uint8_t act) {
routeKeep();
break;
case routeview::RT_SAVE:
if (!R.save()) { showToast("Can't save this route"); break; }
if (!R.save()) { showToast(R.tooLong() ? "Too long to edit - remove all hops first" : "Can't save this route"); break; }
showToast(R.count() ? (R.pinned() ? "Route saved and kept" : "Route saved") : "Saved: direct to the node");
routeRebuild();
break;