Panics · P07 Navigation: Wizard takes its handlers; stale places in tabs, crumbs, history, steps and pages mark none

This commit is contained in:
ZacharyZhang-NY committed 2026-10-06 17:06:25 -04:00
1 parent e2d880fb4f
commit 919f26fcc6
14 files changed
+261 -83

No files matched your search

+9 -4
View File
@@ -1,4 +1,5 @@
mod pages;
mod stale;
mod tabs;
use gpui::{
@@ -83,14 +84,18 @@ impl Render for Flow {
Choice::new("plan", "Plan"),
Choice::new("confirm", "Confirm"),
];
Wizard::new("flow", steps, self.step)
.on_step(move |to, _, cx| {
Wizard::new(
"flow",
steps,
self.step,
move |to, _, cx| {
stepper.update(cx, |view, cx| {
view.step = to;
cx.notify();
})
})
.on_finish(move |_, cx| finisher.update(cx, |view, _| view.done = true))
},
move |_, cx| finisher.update(cx, |view, _| view.done = true),
)
}
}