Skip to content

Commit 97578f1

Browse files
authored
Merge pull request #119 from teamcons/no-background
prevent app from lingering in the background
2 parents b627375 + 9380381 commit 97578f1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/MainWindow.vala

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,13 @@ public class Badger.MainWindow : Gtk.Window {
8585

8686
// Avoid a bug whence reopened windows cannot be closed
8787
private bool before_destroy () {
88+
debug ("Window closed!");
89+
90+
if (!settings.get_boolean ("all")) {
91+
debug ("All reminders are disabled, Badger will now go to sleep");
92+
application.quit ();
93+
};
94+
8895
return false;
8996
}
9097
}

0 commit comments

Comments
 (0)