Fix adding new feeds and version check at start-up

This commit is contained in:
2015-01-22 16:50:28 -05:00
parent 75ba11fefd
commit f7dddff14d
3 changed files with 6 additions and 15 deletions

View File

@@ -107,6 +107,10 @@ namespace FeedCenter
InitializeFeed();
// Check for update
if (Settings.Default.CheckVersionAtStartup)
UpdateCheck.CheckForUpdate();
// Show the link if updates are available
if (UpdateCheck.UpdateAvailable)
newVersionLink.Visibility = Visibility.Visible;
@@ -782,7 +786,7 @@ namespace FeedCenter
// Create and configure the new feed
var feed = Feed.Create(_database);
feed.Source = feedUrl;
feed.Category = _database.Categories.First(category => category.IsDefault);
feed.Category = _database.DefaultCategory;
// Read the feed for the first time
var feedReadResult = feed.Read(_database);