summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-03-07 13:51:12 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-03-07 13:51:29 +0200
commita806290e35706a16ac917d8fd6c29a2f0fbcdffc (patch)
tree713df8d788ddf42d205bf2e354b524ffd5e36595
parente9b29fb71df2096342b4560e56491212e6137b00 (diff)
App: Fetch remote bookmarks after init finished
-rw-r--r--src/app.c2
-rw-r--r--src/bookmarks.c1
2 files changed, 1 insertions, 2 deletions
diff --git a/src/app.c b/src/app.c
index f4d04145..2acc05d3 100644
--- a/src/app.c
+++ b/src/app.c
@@ -634,7 +634,6 @@ static void init_App_(iApp *d, int argc, char **argv) {
634 collectNewCStr_String("Getting Started"), 634 collectNewCStr_String("Getting Started"),
635 collectNewCStr_String("remotesource"), 635 collectNewCStr_String("remotesource"),
636 0x1f306); 636 0x1f306);
637 fetchRemote_Bookmarks(d->bookmarks);
638 } 637 }
639 init_Feeds(dataDir_App_()); 638 init_Feeds(dataDir_App_());
640 /* Widget state init. */ 639 /* Widget state init. */
@@ -662,6 +661,7 @@ static void init_App_(iApp *d, int argc, char **argv) {
662 } 661 }
663 iRelease(openCmds); 662 iRelease(openCmds);
664 } 663 }
664 fetchRemote_Bookmarks(d->bookmarks);
665} 665}
666 666
667static void deinit_App(iApp *d) { 667static void deinit_App(iApp *d) {
diff --git a/src/bookmarks.c b/src/bookmarks.c
index 91280f3c..cf29fc69 100644
--- a/src/bookmarks.c
+++ b/src/bookmarks.c
@@ -167,7 +167,6 @@ void load_Bookmarks(iBookmarks *d, const char *dirPath) {
167 } 167 }
168 } 168 }
169 iRelease(f); 169 iRelease(f);
170 fetchRemote_Bookmarks(d);
171} 170}
172 171
173void save_Bookmarks(const iBookmarks *d, const char *dirPath) { 172void save_Bookmarks(const iBookmarks *d, const char *dirPath) {