From f7cf527b6b41e47ca92d3e8b4853ee92556ba0af Mon Sep 17 00:00:00 2001 From: FineFindus Date: Sun, 12 Jan 2025 00:07:57 +0100 Subject: [PATCH] refactor(window): set window as maximized directly --- src/window.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/window.rs b/src/window.rs index e3ca1f6..818824b 100644 --- a/src/window.rs +++ b/src/window.rs @@ -375,9 +375,7 @@ impl AppWindow { imp.settings.value("window-dimension").get().unwrap(); self.set_default_size(width, height); - if is_maximized { - self.maximize(); - } + self.set_maximized(is_maximized); } /// Insert the formats in the order in which they are saved in the settings.