Skip to content

Commit f25e8d3

Browse files
committed
MainWindow: Use GDK consts to handle close request
1 parent 997b804 commit f25e8d3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/MainWindow.vala

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,10 @@ public class Monitor.MainWindow : Gtk.ApplicationWindow {
1717
if (MonitorApp.settings.get_boolean ("indicator-state")) {
1818
debug ("Indicator is enabled, hiding the window instead of closing");
1919
hide ();
20-
return true;
20+
return Gdk.EVENT_STOP;
2121
}
2222
debug ("Close the window");
23-
close ();
24-
return false;
23+
return Gdk.EVENT_PROPAGATE;
2524
});
2625

2726

0 commit comments

Comments
 (0)