[california/wip/732821-enabled] Don't load Sources that are not enabled
- From: Jim Nelson <jnelson src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [california/wip/732821-enabled] Don't load Sources that are not enabled
- Date: Wed, 23 Jul 2014 20:12:50 +0000 (UTC)
commit 7e05d8706219d6c2e9b93f034974cebc20044b5b
Author: Jim Nelson <jim yorba org>
Date: Wed Jul 23 13:12:01 2014 -0700
Don't load Sources that are not enabled
src/backing/eds/backing-eds-store.vala | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/backing/eds/backing-eds-store.vala b/src/backing/eds/backing-eds-store.vala
index 70f8b71..b94994a 100644
--- a/src/backing/eds/backing-eds-store.vala
+++ b/src/backing/eds/backing-eds-store.vala
@@ -125,6 +125,12 @@ internal class EdsStore : Store, WebCalSubscribable, CalDAVSubscribable {
}
private async void add_eds_source_async(E.Source eds_source) {
+ // if Source not enabled, skip
+ // TODO: Probably need to create an object for this and only make it available when/if
+ // its "enabled" property changes, but this will have to do for now
+ if (!eds_source.enabled)
+ return;
+
// only interested in calendars for now
E.SourceCalendar? eds_calendar =
eds_source.get_extension(E.SOURCE_EXTENSION_CALENDAR) as E.SourceCalendar;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]