summaryrefslogtreecommitdiff
path: root/Juick/MainPage.xaml.cs
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2013-04-05 16:57:42 +0400
committerGravatar Vitaly Takmazov2013-04-05 16:57:42 +0400
commit0f5b520aa44faedbdbab4cdc1020384e9720fe8d (patch)
treec993d0fb14d461cfdbf1cdb05bcacbed3603b301 /Juick/MainPage.xaml.cs
parentbf9b49e65ae46044a5bb96dbec8b59e34b5b368c (diff)
ThreadView progressIndicator, small fixes
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);
}