From 1789bb0b255e7f5823194e72f3ba316eb65c2b18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Cerveau?= Date: Wed, 20 Sep 2023 11:25:07 +0200 Subject: [PATCH] app: remove the maximize call The maximize call blocks the resize on MacOS. Fixes #19 --- src/app.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/app.rs b/src/app.rs index d7231bf..6159ceb 100644 --- a/src/app.rs +++ b/src/app.rs @@ -105,12 +105,9 @@ impl GPSApp { })); let settings = Settings::load_settings(); - if settings.app_maximized { - app.window.maximize(); - } else { - app.window - .set_size_request(settings.app_width, settings.app_height); - } + app.window + .set_size_request(settings.app_width, settings.app_height); + app.set_paned_position(&settings, "graph_dashboard-paned", 100); app.set_paned_position(&settings, "graph_logs-paned", 100); app.set_paned_position(&settings, "elements_preview-paned", 100);