Log view name alongside error in ChildView
This commit is contained in:
parent
edb61a9c8f
commit
a5a60eb854
29 changed files with 105 additions and 63 deletions
|
@ -2571,6 +2571,10 @@ impl AppContext {
|
|||
.and_then(|window| window.focused_view_id)
|
||||
}
|
||||
|
||||
pub fn view_ui_name(&self, window_id: usize, view_id: usize) -> Option<&'static str> {
|
||||
Some(self.views.get(&(window_id, view_id))?.ui_name())
|
||||
}
|
||||
|
||||
pub fn background(&self) -> &Arc<executor::Background> {
|
||||
&self.background
|
||||
}
|
||||
|
@ -4416,6 +4420,10 @@ impl AnyViewHandle {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn window_id(&self) -> usize {
|
||||
self.window_id
|
||||
}
|
||||
|
||||
pub fn id(&self) -> usize {
|
||||
self.view_id
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue