fix(control): capture after the next rendered frame

This commit is contained in:
ysdirector committed 2026-10-10 05:52:36 +08:00
1 parent 2a2d9b55d9
commit 7b210eac09
4 files changed
+129 -15

No files matched your search

+4
View File
@@ -2166,6 +2166,10 @@ pub enum Message {
ControlStep(String, Box<Message>),
ControlTaskDone(String),
ControlScreenshot(String, Option<iced::window::Screenshot>),
/// A frame has been drawn (or the anti-hang timer expired) for a parked
/// `capture` request: take the screenshot now, so it shows the latest
/// state instead of the previous frame (C11).
ControlCaptureFrame { redrew: bool },
ControlToggle,
/// Node graph overlay interaction.
Graph(crate::ui::node_graph::GraphMsg),