Archived
1
0

Fixed multipying downloads on login/logout

Added failed message on logon
This commit is contained in:
Michael Gordeev
2019-06-06 19:38:32 +03:00
parent 8cd16bc334
commit 6d2c05e3f6
4 changed files with 13 additions and 0 deletions
+8
View File
@@ -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]
+1
View File
@@ -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"]);
+3
View File
@@ -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;
+1
View File
@@ -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;
} }