Skip to content

Commit

Permalink
feat(saveable): keep track of window maximized state (#593)
Browse files Browse the repository at this point in the history
  • Loading branch information
henryrov authored Oct 10, 2023
1 parent 3ddccee commit 0078ea6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions data/dev.geopjr.Tuba.gschema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@
<key name="window-h" type="i">
<default>700</default>
</key>
<key name="window-maximized" type="b">
<default>false</default>
</key>
<key name="muted-notification-types" type="as">
<default>[]</default>
</key>
Expand Down
1 change: 1 addition & 0 deletions src/Dialogs/Saveable.vala
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ public interface Tuba.Dialogs.Saveable : Gtk.Window {
protected void construct_saveable (GLib.Settings settings) {
settings.bind ("window-w", this, "default-width", SettingsBindFlags.DEFAULT);
settings.bind ("window-h", this, "default-height", SettingsBindFlags.DEFAULT);
settings.bind ("window-maximized", this, "maximized", SettingsBindFlags.DEFAULT);
}
}

0 comments on commit 0078ea6

Please sign in to comment.