If database empty, add releases feed

This commit is contained in:
relikd
2019-08-11 15:31:35 +02:00
parent a6c8198234
commit a1f191789d
6 changed files with 25 additions and 10 deletions

View File

@@ -51,11 +51,12 @@
}
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
[_statusItem asyncReloadUnreadCount];
[FeedDownload registerNetworkChangeNotification]; // will call update scheduler
if ([StoreCoordinator isEmpty]) {
[_statusItem showWelcomeMessage];
[FeedDownload autoDownloadAndParseUpdateURL];
}
[FeedDownload registerNetworkChangeNotification]; // will call update scheduler
[_statusItem asyncReloadUnreadCount];
}
- (void)applicationWillTerminate:(NSNotification *)aNotification {
@@ -71,7 +72,7 @@
url = [url substringFromIndex:2];
}
if ([scheme isEqualToString:@"feed"]) {
[FeedDownload autoDownloadAndParseURL:url successBlock:nil];
[FeedDownload autoDownloadAndParseURL:url addAnyway:NO modify:nil];
}
}