Fixed multipying downloads on login/logout
Added failed message on logon
This commit is contained in:
@@ -1,5 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<items>
|
||||
<item time="2019-06-19" version="1.0.1">
|
||||
<content>
|
||||
<en-US>### What's new:
|
||||
- Improved analytics tools for more precise bugs tracking
|
||||
- Fixed multipying downloads history entries on login/logout
|
||||
</en-US>
|
||||
</content>
|
||||
</item>
|
||||
<item time="2019-05-21" version="1.0">
|
||||
<content>
|
||||
<en-US>##[Final release]
|
||||
|
||||
@@ -20,6 +20,7 @@ namespace FoxTube
|
||||
public static async void Initialize()
|
||||
{
|
||||
Downloads = await KnownFolders.VideosLibrary.CreateFolderAsync("FoxTube", CreationCollisionOption.OpenIfExists);
|
||||
Items.Clear();
|
||||
try
|
||||
{
|
||||
List<DownloadItemContainer> containers = JsonConvert.DeserializeObject<List<DownloadItemContainer>>((string)settings.Values[$"downloads"]);
|
||||
|
||||
@@ -149,12 +149,15 @@ namespace FoxTube
|
||||
if (e.Message.Contains("UserCancel"))
|
||||
return;
|
||||
else
|
||||
{
|
||||
AuthorizationStateChanged?.Invoke(args: new bool?[] { null });
|
||||
Analytics.TrackEvent("Failed to authorize", new Dictionary<string, string>
|
||||
{
|
||||
{ "Exception", e.GetType().ToString() },
|
||||
{ "Message", e.Message },
|
||||
{ "StackTrace", e.StackTrace }
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
if (Credential == null || !retrieveSubs)
|
||||
|
||||
@@ -30,6 +30,7 @@ namespace FoxTube.Pages
|
||||
protected override void OnNavigatedFrom(NavigationEventArgs e)
|
||||
{
|
||||
base.OnNavigatedFrom(e);
|
||||
list.Children.Clear();
|
||||
DownloadAgent.Page = null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user