17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-02 20:56:27 +01:00

feat(editor): what the editor refuses shows by the mouse cursor

An error put in the status bar also shows for 4 s by the cursor, and the
refusals the tools kept in their panels (a curve which can't be laid,
a switch which doesn't fit, a signal which can't be moved, a drive
without the variant) go there as well.
This commit is contained in:
maj00r
2026-10-21 11:47:26 +02:00
parent 9d27fd1ace
commit da18883558
9 changed files with 70 additions and 27 deletions

View File

@@ -573,6 +573,14 @@ bool editor_mode::route_from_line(TTrack &Track)
}
void editor_mode::route_apply()
{
m_route.error.clear();
route_lay();
if (false == m_route.error.empty())
refused(m_route.error);
}
void editor_mode::route_lay()
{
auto &route{m_route};
route.status.clear();