Commit 7e05d870 authored by Jim Nelson's avatar Jim Nelson

Don't load Sources that are not enabled

parent 8614f2e6
......@@ -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)
// only interested in calendars for now
E.SourceCalendar? eds_calendar =
eds_source.get_extension(E.SOURCE_EXTENSION_CALENDAR) as E.SourceCalendar;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment