Take WindowContext
in workspace::ItemHandle
methods
This commit is contained in:
parent
a8e75a9b55
commit
a820862165
5 changed files with 67 additions and 74 deletions
|
@ -352,7 +352,7 @@ impl AsyncAppContext {
|
|||
self.0.borrow_mut().update(callback)
|
||||
}
|
||||
|
||||
fn update_window<T, F: FnOnce(&mut WindowContext) -> T>(
|
||||
pub fn update_window<T, F: FnOnce(&mut WindowContext) -> T>(
|
||||
&mut self,
|
||||
window_id: usize,
|
||||
callback: F,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue