diff --git a/src/gui/app.rs b/src/gui/app.rs index 6cef329..026e848 100644 --- a/src/gui/app.rs +++ b/src/gui/app.rs @@ -88,10 +88,9 @@ impl App { ctx.send_viewport_cmd(ViewportCommand::CancelClose); Content::show_exit_modal(); } else { + let (w, h) = View::window_size(ctx); + AppConfig::save_window_size(w, h); ctx.input(|i| { - if let Some(rect) = i.viewport().inner_rect { - AppConfig::save_window_size(rect.width(), rect.height()); - } if let Some(rect) = i.viewport().outer_rect { AppConfig::save_window_pos(rect.left(), rect.top()); }