made library scan a bit more conservative

This commit is contained in:
Luke Pulverenti
2013-04-15 11:10:12 -04:00
parent a4cac9c95d
commit 30d6e2cd6c
17 changed files with 677 additions and 592 deletions

View File

@@ -109,7 +109,7 @@ namespace MediaBrowser.ServerApplication.EntryPoints
}
// Show the notification
if (newItems.Count == 1)
if (newItems.Count > 0)
{
Application.Current.Dispatcher.InvokeAsync(() =>
{
@@ -122,19 +122,6 @@ namespace MediaBrowser.ServerApplication.EntryPoints
}, PopupAnimation.Slide, 6000));
});
}
else if (newItems.Count > 1)
{
Application.Current.Dispatcher.InvokeAsync(() =>
{
var window = (MainWindow)Application.Current.MainWindow;
window.Dispatcher.InvokeAsync(() => window.MbTaskbarIcon.ShowCustomBalloon(new MultiItemUpdateNotification(_logger)
{
DataContext = newItems
}, PopupAnimation.Slide, 6000));
});
}
}
/// <summary>