Skip to content

Commit 28a7a08

Browse files
committed
prevent app from lingering in the background
1 parent cf4b48d commit 28a7a08

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/MainWindow.vala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,12 @@ public class Badger.MainWindow : Gtk.Window {
8484

8585
// Avoid a bug whence reopened windows cannot be closed
8686
private bool before_destroy () {
87+
debug ("Window closed!");
8788
hide ();
89+
if (!settings.get_boolean ("all")) {
90+
debug ("All reminders are disabled, Badger will now go to sleep");
91+
application.quit ();
92+
};
8893
return true;
8994
}
9095
}

0 commit comments

Comments
 (0)