Remove MutableAppContext::downgrade

This commit is contained in:
Nathan Sobo 2021-04-10 00:14:26 -06:00
parent 620eedb727
commit 4638391412
3 changed files with 11 additions and 16 deletions

View file

@ -402,7 +402,7 @@ impl Element for BufferElement {
ctx: &mut AfterLayoutContext,
) {
if let Some(layout) = layout {
let app = ctx.app.downgrade();
let app = ctx.app.as_ref();
let view = self.view.read(app);
view.clamp_scroll_left(