Merge pull request #3 from gus33000/download_bug_1_fix - Fixes #1

Fix for download "search" issue (Fixes #1)
This commit is contained in:
Gus
2018-11-28 18:12:40 +01:00
committed by GitHub
+8
View File
@@ -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();
}