Skip to content

Commit c58623d

Browse files
committed
also remove height, width
1 parent edfe240 commit c58623d

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

data/io.elementary.monitor.gschema.xml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,6 @@
1010
<summary>Is window maximized or not</summary>
1111
<description>Is window maximized or not</description>
1212
</key>
13-
<key type="i" name="window-width">
14-
<default>800</default>
15-
<summary>Window width</summary>
16-
<description>Window width</description>
17-
</key>
18-
<key type="i" name="window-height">
19-
<default>640</default>
20-
<summary>Window height</summary>
21-
<description>Window height</description>
22-
</key>
2313
<key type='b' name="indicator-state">
2414
<default>false</default>
2515
<summary>To show Monitor Indicator or not</summary>

src/MainWindow.vala

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,6 @@ public class Monitor.MainWindow : Hdy.ApplicationWindow {
9898
key_press_event.connect ((e) => shortcuts.handle (e));
9999

100100
this.delete_event.connect (() => {
101-
int window_width, window_height;
102-
get_size (out window_width, out window_height);
103-
MonitorApp.settings.set_int ("window-width", window_width);
104-
MonitorApp.settings.set_int ("window-height", window_height);
105101
MonitorApp.settings.set_boolean ("is-maximized", this.is_maximized);
106102

107103
MonitorApp.settings.set_string ("opened-view", stack.visible_child_name);
@@ -121,10 +117,6 @@ public class Monitor.MainWindow : Hdy.ApplicationWindow {
121117
}
122118

123119
private void setup_window_state () {
124-
int window_width = MonitorApp.settings.get_int ("window-width");
125-
int window_height = MonitorApp.settings.get_int ("window-height");
126-
this.set_default_size (window_width, window_height);
127-
128120
if (MonitorApp.settings.get_boolean ("is-maximized")) {
129121
this.maximize ();
130122
}

0 commit comments

Comments
 (0)