diff options
author | Marvin W <git@larma.de> | 2019-10-18 14:10:50 +0200 |
---|---|---|
committer | Marvin W <git@larma.de> | 2019-10-18 14:10:50 +0200 |
commit | 7d561ddfab88f676d2b49d8a7a7bc5dd30d1f41f (patch) | |
tree | 6692274c613ad3d58a82861c046b0645f8cd112e /main | |
parent | f34aa58626980e199b9e68532661c3ed0487771a (diff) | |
download | dino-7d561ddfab88f676d2b49d8a7a7bc5dd30d1f41f.tar.gz dino-7d561ddfab88f676d2b49d8a7a7bc5dd30d1f41f.zip |
Allow to run Dino as background service
Diffstat (limited to 'main')
-rw-r--r-- | main/src/ui/application.vala | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/main/src/ui/application.vala b/main/src/ui/application.vala index df937a50..d9377aeb 100644 --- a/main/src/ui/application.vala +++ b/main/src/ui/application.vala @@ -32,6 +32,7 @@ public class Dino.Ui.Application : Gtk.Application, Dino.Application { controller = new UnifiedWindowController(this, stream_interactor, db); window = new UnifiedWindow(this, stream_interactor, db); controller.set_window(window); + if ((get_flags() & ApplicationFlags.IS_SERVICE) == ApplicationFlags.IS_SERVICE) window.delete_event.connect(window.hide_on_delete); notifications = new Notifications(stream_interactor, window); notifications.start(); |