[geary/wip/17-noisy-problem-reports] Clear account status UI for an account when it is closed
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/wip/17-noisy-problem-reports] Clear account status UI for an account when it is closed
- Date: Mon, 7 Jan 2019 23:00:49 +0000 (UTC)
commit 84a450bfdcdc3b2777750d551ea1337288fe2a54
Author: Michael Gratton <mike vee net>
Date: Tue Jan 8 10:00:00 2019 +1100
Clear account status UI for an account when it is closed
src/client/application/geary-controller.vala | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/src/client/application/geary-controller.vala b/src/client/application/geary-controller.vala
index cb348db2..cfd56587 100644
--- a/src/client/application/geary-controller.vala
+++ b/src/client/application/geary-controller.vala
@@ -1107,6 +1107,10 @@ public class GearyController : Geary.BaseObject {
// Guard against trying to disconnect the account twice
this.accounts.unset(account.information);
+ // Now the account is not in the accounts map, reset any
+ // status notifications for it
+ update_account_status();
+
account.email_sent.disconnect(on_sent);
account.email_removed.disconnect(on_account_email_removed);
account.folders_available_unavailable.disconnect(on_folders_available_unavailable);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]