marker: persist project-wide markers_paused to the .gns3 file

pause/resume was fire-and-forget: the controller sent marker pause/resume but
stored nothing, so the Web UI could only keep a local optimistic flag that was
lost on panel reopen. Treat the mute as a project-level config (like per-marker
enabled): record _markers_paused, persist it in the topology (asdict + load),
and echo it on the project object so the UI renders from server truth.

Because marker pause is a uBridge runtime flag that resets on node restart,
start_all re-applies the mute to freshly started uBridges after a project
reopen — a paused project stays paused across close/reopen.
This commit is contained in:
YueGuobin committed 2026-08-02 22:21:05 +08:00
1 parent 8ba950fa29
commit f7d7ba165a
3 files changed
+21

No files matched your search

+1
View File
@@ -83,6 +83,7 @@ async def test_json():
"supplier": None,
"variables": None,
"marker_definitions": {},
"markers_paused": False,
"created_by": None
}