Move more window-specific methods from AppContext to WindowContext

This commit is contained in:
Antonio Scandurra
2023-04-14 10:29:35 +02:00
parent c62357db02
commit 9ef79735dc
10 changed files with 369 additions and 356 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ impl<V: View> Drawable<V> for KeystrokeLabel {
cx: &mut ViewContext<V>,
) -> (Vector2F, Element<V>) {
let mut element = if let Some(keystrokes) =
cx.keystrokes_for_action(self.window_id, self.view_id, self.action.as_ref())
cx.keystrokes_for_action(self.view_id, self.action.as_ref())
{
Flex::row()
.with_children(keystrokes.iter().map(|keystroke| {