Put context parameter last in toggle_modal callback
This is more consistent with our treatment of context params everywhere else.
This commit is contained in:
@@ -71,7 +71,7 @@ impl CommandPalette {
|
||||
cx.as_mut().defer(move |cx| {
|
||||
let this = cx.add_view(window_id, |cx| Self::new(focused_view_id, cx));
|
||||
workspace.update(cx, |workspace, cx| {
|
||||
workspace.toggle_modal(cx, |cx, _| {
|
||||
workspace.toggle_modal(cx, |_, cx| {
|
||||
cx.subscribe(&this, Self::on_event).detach();
|
||||
this
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user