Skip to content

Commit

Permalink
refactor(window): set window as maximized directly
Browse files Browse the repository at this point in the history
  • Loading branch information
FineFindus committed Jan 11, 2025
1 parent 6e96322 commit f7cf527
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit f7cf527

Please sign in to comment.