diff --git a/data/io.github.flattool.Warehouse.gschema.xml b/data/io.github.flattool.Warehouse.gschema.xml index d6af08f..0893008 100644 --- a/data/io.github.flattool.Warehouse.gschema.xml +++ b/data/io.github.flattool.Warehouse.gschema.xml @@ -1,15 +1,17 @@ - - 800 - Window Width - The width of the main window - - - 500 - Window Height - The height of the main window - + + 640 + + + 480 + + + false + + + false + diff --git a/src/window.py b/src/window.py index e722996..b30ca7c 100644 --- a/src/window.py +++ b/src/window.py @@ -526,7 +526,10 @@ class WarehouseWindow(Adw.ApplicationWindow): self.host_flatpaks = self.my_utils.getHostFlatpaks() self.set_size_request(0, 230) self.settings = Gio.Settings.new("io.github.flattool.Warehouse") - self.loadSettings() + self.settings.bind("window-width", self, "default-width", Gio.SettingsBindFlags.DEFAULT) + self.settings.bind("window-height", self, "default-height", Gio.SettingsBindFlags.DEFAULT) + self.settings.bind("is-maximized", self, "maximized", Gio.SettingsBindFlags.DEFAULT) + self.settings.bind("is-fullscreen", self, "fullscreened", Gio.SettingsBindFlags.DEFAULT) if self.host_flatpaks == [['']]: self.windowSetEmpty(True)