app: remove the maximize call

The maximize call blocks the resize on MacOS.

Fixes #19
This commit is contained in:
Stéphane Cerveau 2023-09-20 11:25:07 +02:00 committed by Stéphane Cerveau
parent c1ae2c37b6
commit 1789bb0b25

View file

@ -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);