Ensure set_size is called after toggle_visibility

This commit is contained in:
Kenny Levinsen
2019-09-17 13:16:48 +02:00
parent b94e80c346
commit f2999fb53f
+3
View File
@@ -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();
}