summaryrefslogtreecommitdiff
path: root/Juick/MainPage.xaml.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Juick/MainPage.xaml.cs')
-rw-r--r--Juick/MainPage.xaml.cs9
1 files changed, 4 insertions, 5 deletions
diff --git a/Juick/MainPage.xaml.cs b/Juick/MainPage.xaml.cs
index 1c76ee1..b37bd8f 100644
--- a/Juick/MainPage.xaml.cs
+++ b/Juick/MainPage.xaml.cs
@@ -67,7 +67,6 @@ namespace Juick
Loaded += (o, args) =>
{
- Pages.SelectedIndex = 0;
var progressIndicator = SystemTray.ProgressIndicator;
if (progressIndicator != null)
@@ -88,6 +87,9 @@ namespace Juick
BindingOperations.SetBinding(
progressIndicator, ProgressIndicator.IsIndeterminateProperty, binding);
+ if (App.AppContext.Account.IsAuthenticated)
+ foreach (var page in ((AppViewModel)DataContext).Pages)
+ page.RefreshData();
};
}
@@ -113,10 +115,7 @@ namespace Juick
{
NavigationService.Navigate(new Uri(navigateUri, UriKind.Relative));
}
- App.AppContext.Client.Authenticator = new HttpBasicAuthenticator(App.AppContext.Account.UserName, App.AppContext.Account.Password);
- if (App.AppContext.Account.IsAuthenticated)
- foreach (var page in ((AppViewModel)DataContext).Pages)
- page.RefreshData();
+ App.AppContext.Client.Authenticator = new HttpBasicAuthenticator(App.AppContext.Account.UserName, App.AppContext.Account.Password);
}