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
@@ -216,7 +216,7 @@ public:
break;
case R_TO_NODE: r.setToNode(!r.toNode()); break;
case R_SAVE:
if (!r.save()) _task->showAlert("Can't save", 1000);
if (!r.save()) _task->showAlert(r.tooLong() ? "Too long to edit" : "Can't save", 1000);
else _task->showAlert(r.count() ? "Path saved" : "Saved: direct", 1000);
break;
case R_KEEP: toggleKeep(); break;