diff options
author | fiaxh <git@lightrise.org> | 2019-11-26 18:42:18 +0100 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2019-11-26 18:47:30 +0100 |
commit | c4325473fba84db6d48bf2ca9e79214fef1cca2f (patch) | |
tree | 51b9dbb598628b44b1f09ae588db5588168ebfe7 /main/src/ui/application.vala | |
parent | b03da2af60e109921967fd38a2ba16bfb4df9f5d (diff) | |
download | dino-c4325473fba84db6d48bf2ca9e79214fef1cca2f.tar.gz dino-c4325473fba84db6d48bf2ca9e79214fef1cca2f.zip |
Don't require window object in notifications
fixes #658
Diffstat (limited to 'main/src/ui/application.vala')
-rw-r--r-- | main/src/ui/application.vala | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/main/src/ui/application.vala b/main/src/ui/application.vala index 9a154a49..f031bf43 100644 --- a/main/src/ui/application.vala +++ b/main/src/ui/application.vala @@ -28,6 +28,11 @@ public class Dino.Ui.Application : Gtk.Application, Dino.Application { create_actions(); + startup.connect(() => { + notifications = new Notifications(stream_interactor); + notifications.start(); + }); + activate.connect(() => { if (window == null) { controller = new UnifiedWindowController(this, stream_interactor, db); @@ -36,8 +41,6 @@ public class Dino.Ui.Application : Gtk.Application, Dino.Application { 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(); notifications.conversation_selected.connect((conversation) => window.on_conversation_selected(conversation)); } window.present(); |