summaryrefslogtreecommitdiffstats
path: root/src/state.rs
diff options
context:
space:
mode:
authorManos Pitsidianakis <el13635@mail.ntua.gr>2020-06-09 15:39:53 +0300
committerManos Pitsidianakis <el13635@mail.ntua.gr>2020-06-09 15:39:53 +0300
commit9f30cd6bbc73e0ac44454d7b9ad4ad955f430498 (patch)
tree5489e8750f67d08ecefcf3892caf2746224e5161 /src/state.rs
parent1241b6073fcc0991a015a560bda7a179d5000394 (diff)
state.rs: send AccountStatusChange
Diffstat (limited to 'src/state.rs')
-rw-r--r--src/state.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/state.rs b/src/state.rs
index aa2bd279..b22139f3 100644
--- a/src/state.rs
+++ b/src/state.rs
@@ -143,6 +143,9 @@ impl Context {
replies.push_back(UIEvent::AccountStatusChange(account_pos));
}
}
+ if ret.is_ok() != was_online {
+ replies.push_back(UIEvent::AccountStatusChange(account_pos));
+ }
ret
}