aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/manage_accounts/account_row.vala
diff options
context:
space:
mode:
authorfiaxh <git@mx.ax.lt>2017-11-11 21:29:13 +0100
committerfiaxh <git@mx.ax.lt>2017-11-16 17:43:00 +0100
commit3f531d6b91edab6c79fa232143db828bad13853c (patch)
tree1083046c94e0b4a43cf16ac4a388fcea8ef91e84 /main/src/ui/manage_accounts/account_row.vala
parent1d0745177e7a116455811dfd26e07b848cb89b75 (diff)
downloaddino-3f531d6b91edab6c79fa232143db828bad13853c.tar.gz
dino-3f531d6b91edab6c79fa232143db828bad13853c.zip
Read+(write) stream async
Diffstat (limited to 'main/src/ui/manage_accounts/account_row.vala')
-rw-r--r--main/src/ui/manage_accounts/account_row.vala14
1 files changed, 6 insertions, 8 deletions
diff --git a/main/src/ui/manage_accounts/account_row.vala b/main/src/ui/manage_accounts/account_row.vala
index 911d48f4..8ac2c213 100644
--- a/main/src/ui/manage_accounts/account_row.vala
+++ b/main/src/ui/manage_accounts/account_row.vala
@@ -21,16 +21,14 @@ public class AccountRow : Gtk.ListBoxRow {
jid_label.set_label(account.bare_jid.to_string());
stream_interactor.connection_manager.connection_error.connect((account, error) => {
- Idle.add(() => {
- if (account.equals(this.account)) update_warning_icon();
- return false;
- });
+ if (account.equals(this.account)) {
+ update_warning_icon();
+ }
});
stream_interactor.connection_manager.connection_state_changed.connect((account, state) => {
- Idle.add(() => {
- if (account.equals(this.account)) update_warning_icon();
- return false;
- });
+ if (account.equals(this.account)) {
+ update_warning_icon();
+ }
});
}