Panics · P33 Devtools: handlers in new; stale collection moves, environments and diagram tables change nothing

This commit is contained in:
ZacharyZhang-NY committed 2026-10-07 05:15:49 -04:00
1 parent ffe4f38103
commit 05e846b62a
13 files changed
+220 -215

No files matched your search

+1 -2
View File
@@ -35,8 +35,7 @@ pub fn text(window: &mut Window, cx: &mut App) -> impl IntoElement + use<> {
.child(div().w(px(380.)).child(Encoder::new("devtools-encoder", "Hello, 世界")))
.child(
div().w(px(360.)).child(
ColorContrastChecker::new("devtools-contrast", fore, back)
.on_change(move |fore, back, _, cx| change(&colors, cx, |colors| *colors = (fore, back))),
ColorContrastChecker::new("devtools-contrast", fore, back, move |fore, back, _, cx| change(&colors, cx, |colors| *colors = (fore, back))),
),
),
)