Move more window-specific methods from AppContext to WindowContext

This commit is contained in:
Antonio Scandurra committed 2023-04-14 10:29:35 +02:00
1 parent f864787bbd
commit 1f47ff85de
10 files changed
+369 -356

No files matched your search

@@ -43,7 +43,7 @@ impl CommandPalette {
pub fn new(focused_view_id: usize, cx: &mut ViewContext<Self>) -> Self {
let this = cx.weak_handle();
let actions = cx
.available_actions(cx.window_id(), focused_view_id)
.available_actions(focused_view_id)
.filter_map(|(name, action, bindings)| {
if cx.has_global::<CommandPaletteFilter>() {
let filter = cx.global::<CommandPaletteFilter>();