Add missing Arc for on_click handler

This commit is contained in:
Marshall Bowers 2023-10-19 10:25:54 -04:00
parent e34a488b55
commit f5c76d93bc

View file

@ -1,3 +1,5 @@
use std::sync::Arc;
use chrono::DateTime;
use gpui3::{px, relative, view, Context, Size, View};
@ -303,7 +305,7 @@ impl Workspace {
.child(
h_stack().gap_2().child(
Button::<Workspace>::new("Toggle Debug")
.on_click(|workspace, cx| workspace.toggle_debug(cx)),
.on_click(Arc::new(|workspace, cx| workspace.toggle_debug(cx))),
),
)
}