[gnome-notes] manager: Load GOA accounts only if documents are enabled
- From: Isaque Galdino de Araujo <igaldino src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-notes] manager: Load GOA accounts only if documents are enabled
- Date: Tue, 18 May 2021 00:40:48 +0000 (UTC)
commit 1a328e81fbcea6fcb871a15a82bdcc63175b564f
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date: Mon May 17 10:38:40 2021 +0530
manager: Load GOA accounts only if documents are enabled
Let's provide a way for the user to disable loading online notes which can be very slow
on slow networks. This will also speed up loading bijiben if not connected
to network.
src/libbiji/biji-manager.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/libbiji/biji-manager.c b/src/libbiji/biji-manager.c
index 35dcfe9..76e420d 100644
--- a/src/libbiji/biji-manager.c
+++ b/src/libbiji/biji-manager.c
@@ -170,7 +170,8 @@ load_goa_provider (BijiManager *self,
object = GOA_OBJECT (l->data);
account = goa_object_peek_account (object);
- if (GOA_IS_ACCOUNT (account))
+ if (GOA_IS_ACCOUNT (account) &&
+ !goa_account_get_documents_disabled (account))
{
type = goa_account_get_provider_type (account);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]