From 76fce4fb2ac4403bef6016f379253a56144a6c0b Mon Sep 17 00:00:00 2001 From: Michael Gordeev Date: Sun, 16 Dec 2018 22:13:56 +0300 Subject: [PATCH] Bugfix 227 Related Work Items: #227 --- FoxTube/Pages/MainPage.xaml.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/FoxTube/Pages/MainPage.xaml.cs b/FoxTube/Pages/MainPage.xaml.cs index b6af323..cff7741 100644 --- a/FoxTube/Pages/MainPage.xaml.cs +++ b/FoxTube/Pages/MainPage.xaml.cs @@ -90,6 +90,8 @@ namespace FoxTube catch { } } + content.Navigate(typeof(Home)); + SecretsVault.AuthorizationStateChanged += Vault_AuthorizationStateChanged; SecretsVault.SubscriptionsChanged += SecretsVault_SubscriptionsChanged; SecretsVault.NotPurchased += () => removeAds.Visibility = Visibility.Visible; @@ -236,8 +238,7 @@ namespace FoxTube } nav.SelectedItem = toHome; - if(content.Content is Home) - content.Navigate(typeof(Home)); + content.Navigate(typeof(Home)); if (videoPlaceholder.Content != null) GoToVideo((videoPlaceholder.Content as VideoPage).videoId);