[evolution-data-server/gnome-3-34] I#156 - EBook/CalMetaBackend: Automatic refresh not always setup ][



commit 1128bbdddbfd954a635dfb4c1076a9b4320efcd3
Author: Milan Crha <mcrha redhat com>
Date:   Wed Oct 16 15:16:58 2019 +0200

    I#156 - EBook/CalMetaBackend: Automatic refresh not always setup ][
    
    The refresh interval had been setup only if the book/calendar Properties
    had been opened and refresh information had been saved, even the default
    to refresh every 60 minutes. This change removes such requirement and
    let refresh the book/calendar with the default refresh interval too.
    
    Related to https://gitlab.gnome.org/GNOME/evolution-data-server/issues/156

 src/addressbook/libedata-book/e-book-meta-backend.c | 6 ++----
 src/calendar/libedata-cal/e-cal-meta-backend.c      | 6 ++----
 2 files changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/src/addressbook/libedata-book/e-book-meta-backend.c 
b/src/addressbook/libedata-book/e-book-meta-backend.c
index 060ddf73b..2aa955263 100644
--- a/src/addressbook/libedata-book/e-book-meta-backend.c
+++ b/src/addressbook/libedata-book/e-book-meta-backend.c
@@ -916,10 +916,8 @@ ebmb_ensure_refresh_timeout_set_locked (EBookMetaBackend *meta_backend)
        if (!meta_backend->priv->refresh_timeout_id) {
                ESource *source = e_backend_get_source (E_BACKEND (meta_backend));
 
-               if (e_source_has_extension (source, E_SOURCE_EXTENSION_REFRESH)) {
-                       meta_backend->priv->refresh_timeout_id = e_source_refresh_add_timeout (source, NULL,
-                               ebmb_source_refresh_timeout_cb, e_weak_ref_new (meta_backend), 
(GDestroyNotify) e_weak_ref_free);
-               }
+               meta_backend->priv->refresh_timeout_id = e_source_refresh_add_timeout (source, NULL,
+                       ebmb_source_refresh_timeout_cb, e_weak_ref_new (meta_backend), (GDestroyNotify) 
e_weak_ref_free);
        }
 }
 
diff --git a/src/calendar/libedata-cal/e-cal-meta-backend.c b/src/calendar/libedata-cal/e-cal-meta-backend.c
index 25cd0652e..388b54f1f 100644
--- a/src/calendar/libedata-cal/e-cal-meta-backend.c
+++ b/src/calendar/libedata-cal/e-cal-meta-backend.c
@@ -817,10 +817,8 @@ ecmb_ensure_refresh_timeout_set_locked (ECalMetaBackend *meta_backend)
        if (!meta_backend->priv->refresh_timeout_id) {
                ESource *source = e_backend_get_source (E_BACKEND (meta_backend));
 
-               if (e_source_has_extension (source, E_SOURCE_EXTENSION_REFRESH)) {
-                       meta_backend->priv->refresh_timeout_id = e_source_refresh_add_timeout (source, NULL,
-                               ecmb_source_refresh_timeout_cb, e_weak_ref_new (meta_backend), 
(GDestroyNotify) e_weak_ref_free);
-               }
+               meta_backend->priv->refresh_timeout_id = e_source_refresh_add_timeout (source, NULL,
+                       ecmb_source_refresh_timeout_cb, e_weak_ref_new (meta_backend), (GDestroyNotify) 
e_weak_ref_free);
        }
 }
 


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