From 7d561ddfab88f676d2b49d8a7a7bc5dd30d1f41f Mon Sep 17 00:00:00 2001 From: Marvin W Date: Fri, 18 Oct 2019 14:10:50 +0200 Subject: Allow to run Dino as background service --- libdino/src/application.vala | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libdino/src') diff --git a/libdino/src/application.vala b/libdino/src/application.vala index da098fb4..55bf950c 100644 --- a/libdino/src/application.vala +++ b/libdino/src/application.vala @@ -111,10 +111,12 @@ public interface Dino.Application : GLib.Application { } protected void add_connection(Account account) { + if ((get_flags() & ApplicationFlags.IS_SERVICE) == ApplicationFlags.IS_SERVICE) hold(); stream_interactor.connect_account(account); } protected void remove_connection(Account account) { + if ((get_flags() & ApplicationFlags.IS_SERVICE) == ApplicationFlags.IS_SERVICE) release(); stream_interactor.disconnect_account(account); } -- cgit v1.2.3-70-g09d2