[geary/mjog/user-plugins: 14/26] Application.ContactStore: Make ::close internal



commit c50ab505e8378b273ada77886c6a0afe495ad0bb
Author: Michael Gratton <mike vee net>
Date:   Tue Mar 10 12:18:44 2020 +1100

    Application.ContactStore: Make ::close internal
    
    Prevent non-application-code from attempting to close it.

 src/client/application/application-contact-store.vala | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/client/application/application-contact-store.vala 
b/src/client/application/application-contact-store.vala
index bc96b63c..bbb4db22 100644
--- a/src/client/application/application-contact-store.vala
+++ b/src/client/application/application-contact-store.vala
@@ -75,13 +75,6 @@ public class Application.ContactStore : Geary.BaseObject {
         );
     }
 
-    /** Closes the store, flushing all caches. */
-    public void close() {
-        this.folks_address_cache.clear();
-        this.contact_id_cache.clear();
-        this.engine_address_cache.clear();
-    }
-
     /**
      * Returns a contact for a specific mailbox.
      *
@@ -183,6 +176,13 @@ public class Application.ContactStore : Geary.BaseObject {
         return results;
     }
 
+    /** Closes the store, flushing all caches. */
+    internal void close() {
+        this.folks_address_cache.clear();
+        this.contact_id_cache.clear();
+        this.engine_address_cache.clear();
+    }
+
     internal async Geary.Contact
         lookup_engine_contact(Geary.RFC822.MailboxAddress mailbox,
                               GLib.Cancellable cancellable)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]