mirror of
https://github.com/ReneLergner/WPinternals.git
synced 2026-06-14 03:16:40 +10:00
Fix for download "search" issue (Fixes #1)
This commit is contained in:
@@ -36,6 +36,7 @@ namespace WPinternals
|
||||
{
|
||||
private PhoneNotifierViewModel Notifier;
|
||||
private Timer SpeedTimer;
|
||||
private bool IsSearching = false;
|
||||
|
||||
internal DownloadsViewModel(PhoneNotifierViewModel Notifier)
|
||||
{
|
||||
@@ -156,6 +157,11 @@ namespace WPinternals
|
||||
|
||||
private void Search()
|
||||
{
|
||||
if (IsSearching)
|
||||
return;
|
||||
|
||||
IsSearching = true;
|
||||
|
||||
SynchronizationContext UIContext = SynchronizationContext.Current;
|
||||
SearchResultList.Clear();
|
||||
|
||||
@@ -184,6 +190,8 @@ namespace WPinternals
|
||||
if (EmergencyURLs != null)
|
||||
SearchResultList.Add(new SearchResult(ProductType + " emergency-files", EmergencyURLs, ProductType, EmergencyDownloaded, ProductType));
|
||||
}, null);
|
||||
|
||||
IsSearching = false;
|
||||
}).Start();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user