Archived
1
0

Fixed some initialization issues

Related Work Items: #216
This commit is contained in:
Michael Gordeev
2018-12-24 20:27:55 +03:00
parent e2f741290d
commit bd993ff47b
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -150,7 +150,7 @@ namespace FoxTube
} }
catch catch
{ {
AuthorizationStateChanged?.Invoke(args: null); AuthorizationStateChanged?.Invoke(args: new bool?[] { null });
} }
} }
+3 -3
View File
@@ -64,8 +64,6 @@ namespace FoxTube
SecretsVault.CheckAuthorization(); SecretsVault.CheckAuthorization();
SecretsVault.CheckAddons(); SecretsVault.CheckAddons();
DownloadAgent.Initialize();
SetTitleBar(); SetTitleBar();
} }
@@ -229,7 +227,6 @@ namespace FoxTube
{ {
Methods.CloseApp(); Methods.CloseApp();
})); }));
dialog.Commands.Add(new UICommand("Close"));
dialog.CancelCommandIndex = 1; dialog.CancelCommandIndex = 1;
dialog.DefaultCommandIndex = 0; dialog.DefaultCommandIndex = 0;
@@ -237,6 +234,9 @@ namespace FoxTube
await dialog.ShowAsync(); await dialog.ShowAsync();
} }
if(e[0] as bool? != null)
DownloadAgent.Initialize();
content.Navigate(typeof(Home)); content.Navigate(typeof(Home));
if (videoPlaceholder.Content != null) if (videoPlaceholder.Content != null)