Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

Commit

Permalink
采用更合理的写法,解决一个意料外的异常
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiichiamane committed May 30, 2020
1 parent 4dd5a35 commit 463af07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PixivFSUWP/MainPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ private void NavControl_BackRequested(NavigationView sender, NavigationViewBackR
break;
}
}
if (param.GetType() == typeof((WaterfallPage.ListContent, int?)))
if (param is ValueTuple<WaterfallPage.ListContent, int?>)
{
_programmablechange = true;
switch ((((WaterfallPage.ListContent, int?))param).Item1)
Expand Down

0 comments on commit 463af07

Please sign in to comment.