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