diff options
author | fiaxh <git@mx.ax.lt> | 2017-03-20 22:12:20 +0100 |
---|---|---|
committer | fiaxh <git@mx.ax.lt> | 2017-03-20 22:28:32 +0100 |
commit | 6f3225979cb497db99381556adb7e42119b44ec3 (patch) | |
tree | 1f7352d12eaf1aec7a38d388d3b1917bcd06e479 /main/src/ui/application.vala | |
parent | db57a973534f099af2b150f1a1307d1948553d9f (diff) | |
download | dino-6f3225979cb497db99381556adb7e42119b44ec3.tar.gz dino-6f3225979cb497db99381556adb7e42119b44ec3.zip |
Select conversation on startup, placeholder for "No conversation selected", start services before UI
Diffstat (limited to 'main/src/ui/application.vala')
-rw-r--r-- | main/src/ui/application.vala | 25 |
1 files changed, 5 insertions, 20 deletions
diff --git a/main/src/ui/application.vala b/main/src/ui/application.vala index e6f01822..e78fa90a 100644 --- a/main/src/ui/application.vala +++ b/main/src/ui/application.vala @@ -13,13 +13,12 @@ public class Dino.Ui.Application : Dino.Application { notifications.start(); Environment.set_application_name("Dino"); IconTheme.get_default().add_resource_path("/org/dino-im/icons"); - } - public override void activate() { - create_set_app_menu(); - window = new UnifiedWindow(this, stream_interaction); - window.show_all(); - restore(); + activate.connect(() => { + create_set_app_menu(); + window = new UnifiedWindow(this, stream_interaction); + window.show(); + }); } private void show_accounts_window() { @@ -55,19 +54,5 @@ public class Dino.Ui.Application : Dino.Application { set_app_menu(menu); } - - private void restore() { - foreach (Account account in db.get_accounts()) { - if (account.enabled) add_connection(account); - } - } - - private void add_connection(Account account) { - stream_interaction.connect(account); - } - - private void remove_connection(Account account) { - stream_interaction.disconnect(account); - } } |