summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Juick/MainPage.xaml.cs2
-rw-r--r--Juick/ThreadView.xaml.cs9
2 files changed, 2 insertions, 9 deletions
diff --git a/Juick/MainPage.xaml.cs b/Juick/MainPage.xaml.cs
index 43a2327..6ea6e04 100644
--- a/Juick/MainPage.xaml.cs
+++ b/Juick/MainPage.xaml.cs
@@ -157,7 +157,7 @@ namespace Juick
return;
// Navigate to the new page
- NavigationService.Navigate(new Uri(string.Format("/ThreadView.xaml?mid={0}&last=true", App.LastView.Items[((ListBox)sender).SelectedIndex].MID), UriKind.Relative));
+ NavigationService.Navigate(new Uri(string.Format("/ThreadView.xaml?mid={0}", App.LastView.Items[((ListBox)sender).SelectedIndex].MID), UriKind.Relative));
// Reset selected index to -1 (no selection)
((ListBox)sender).SelectedIndex = -1;
diff --git a/Juick/ThreadView.xaml.cs b/Juick/ThreadView.xaml.cs
index eac9813..958efe2 100644
--- a/Juick/ThreadView.xaml.cs
+++ b/Juick/ThreadView.xaml.cs
@@ -22,16 +22,9 @@ namespace Juick
protected override void OnNavigatedTo(NavigationEventArgs e)
{
string _mid = "";
- string _last = "";
- bool last = false;
- if (NavigationContext.QueryString.TryGetValue("last", out _last))
- {
- last = bool.Parse(_last);
- }
if (NavigationContext.QueryString.TryGetValue("mid", out _mid))
{
- int MID = int.Parse(_mid);
- Model.Mid = last ? App.LastView.Items.Single(i => i.MID == MID).MID : App.MyFeedView.Items.Single(i => i.MID == MID).MID;
+ Model.Mid = int.Parse(_mid);
Model.LoadData();
}
}