mirror of
https://github.com/ckaczor/FeedCenter.git
synced 2026-01-25 09:35:40 -05:00
Fix adding new feeds and version check at start-up
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user