From f2999fb53f34565d955871490b4646770d428128 Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Tue, 17 Sep 2019 13:16:48 +0200 Subject: [PATCH] Ensure set_size is called after toggle_visibility --- src/app.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app.rs b/src/app.rs index f01c6f9..9438519 100644 --- a/src/app.rs +++ b/src/app.rs @@ -313,6 +313,9 @@ impl App { pub fn toggle_visible(&mut self) { let mut inner = self.inner.lock().unwrap(); inner.visible = !inner.visible; + if !inner.visible { + self.last_dim = (0, 0); + } inner.outputs_changed(); }