Fixed comments
I believe "Get" and "Set" was mixed up in the comments explaining this code
@@ -27,7 +27,7 @@ impl CustomWindow {
// Get the size of the window
let size = self.default_size();
- // Get the window state from `settings`
+ // Set the window state in `settings`
settings.set_int("window-width", size.0)?;
settings.set_int("window-height", size.1)?;
settings.set_boolean("is-maximized", self.is_maximized())?;
@@ -39,7 +39,7 @@ impl CustomWindow {
// Get `settings` from `imp::CustomWindow`
let settings = &imp::CustomWindow::from_instance(self).settings;
- // Set the window state in `settings`
+ // Get the window state from `settings`
let width = settings.int("window-width");
let height = settings.int("window-height");
let is_maximized = settings.boolean("is-maximized");
