Skip to content

Commit

Permalink
Merge branch 'main' into danirabbit/meson-data
Browse files Browse the repository at this point in the history
  • Loading branch information
danirabbit committed Sep 23, 2024
2 parents 8b49cc6 + 7981a26 commit 5f11c69
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
10 changes: 0 additions & 10 deletions data/taxi.gschema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,5 @@
<summary>Whether the window should be maximized.</summary>
<description>Whether the window should be maximized by default.</description>
</key>
<key type="i" name="opening-x">
<default>-1</default>
<summary>Most recent x position of the window.</summary>
<description>Most recent x position of the window.</description>
</key>
<key type="i" name="opening-y">
<default>-1</default>
<summary>Most recent y position of the window.</summary>
<description>Most recent y position of the window.</description>
</key>
</schema>
</schemalist>
12 changes: 0 additions & 12 deletions src/Frontend/MainWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,6 @@ class Taxi.MainWindow : Hdy.ApplicationWindow {

saved_state = new GLib.Settings ("com.github.alecaddd.taxi.state");

var window_x = saved_state.get_int ("opening-x");
var window_y = saved_state.get_int ("opening-y");

if (window_x != -1 || window_y != -1) {
move (window_x, window_y);
}

default_height = saved_state.get_int ("window-height");
default_width = saved_state.get_int ("window-width");

Expand Down Expand Up @@ -383,11 +376,6 @@ class Taxi.MainWindow : Hdy.ApplicationWindow {
get_size (out window_width, out window_height);
saved_state.set_int ("window-height", window_height);
saved_state.set_int ("window-width", window_width);

int x_pos, y_pos;
get_position (out x_pos, out y_pos);
saved_state.set_int ("opening-x", x_pos);
saved_state.set_int ("opening-y", y_pos);
}

return base.configure_event (event);
Expand Down

0 comments on commit 5f11c69

Please sign in to comment.