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" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<items>
|
<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">
|
<item time="2019-05-21" version="1.0">
|
||||||
<content>
|
<content>
|
||||||
<en-US>##[Final release]
|
<en-US>##[Final release]
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ namespace FoxTube
|
|||||||
public static async void Initialize()
|
public static async void Initialize()
|
||||||
{
|
{
|
||||||
Downloads = await KnownFolders.VideosLibrary.CreateFolderAsync("FoxTube", CreationCollisionOption.OpenIfExists);
|
Downloads = await KnownFolders.VideosLibrary.CreateFolderAsync("FoxTube", CreationCollisionOption.OpenIfExists);
|
||||||
|
Items.Clear();
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
List<DownloadItemContainer> containers = JsonConvert.DeserializeObject<List<DownloadItemContainer>>((string)settings.Values[$"downloads"]);
|
List<DownloadItemContainer> containers = JsonConvert.DeserializeObject<List<DownloadItemContainer>>((string)settings.Values[$"downloads"]);
|
||||||
|
|||||||
@@ -149,6 +149,8 @@ namespace FoxTube
|
|||||||
if (e.Message.Contains("UserCancel"))
|
if (e.Message.Contains("UserCancel"))
|
||||||
return;
|
return;
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
AuthorizationStateChanged?.Invoke(args: new bool?[] { null });
|
||||||
Analytics.TrackEvent("Failed to authorize", new Dictionary<string, string>
|
Analytics.TrackEvent("Failed to authorize", new Dictionary<string, string>
|
||||||
{
|
{
|
||||||
{ "Exception", e.GetType().ToString() },
|
{ "Exception", e.GetType().ToString() },
|
||||||
@@ -156,6 +158,7 @@ namespace FoxTube
|
|||||||
{ "StackTrace", e.StackTrace }
|
{ "StackTrace", e.StackTrace }
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (Credential == null || !retrieveSubs)
|
if (Credential == null || !retrieveSubs)
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ namespace FoxTube.Pages
|
|||||||
protected override void OnNavigatedFrom(NavigationEventArgs e)
|
protected override void OnNavigatedFrom(NavigationEventArgs e)
|
||||||
{
|
{
|
||||||
base.OnNavigatedFrom(e);
|
base.OnNavigatedFrom(e);
|
||||||
|
list.Children.Clear();
|
||||||
DownloadAgent.Page = null;
|
DownloadAgent.Page = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user