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

Commit

Permalink
吞掉Spam搜索按钮出现的异常
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiichiamane committed Dec 4, 2019
1 parent eb32e0c commit debbb97
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions PixivFSUWP/MainPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,15 @@ private void BtnMe_Click(object sender, RoutedEventArgs e)

private async void BtnSearch_Click(object sender, RoutedEventArgs e)
{
if (ContentFrame.Content is SearchPage)
await (ContentFrame.Content as SearchPage).ShowSearch();
else
ContentFrame.Navigate(typeof(SearchPage));
try
{
if (ContentFrame.Content is SearchPage)
await (ContentFrame.Content as SearchPage).ShowSearch();
else
ContentFrame.Navigate(typeof(SearchPage));
}
//吞掉异常,这个异常没有意义
catch { }
}

public void UpdateNavButtonState()
Expand Down

0 comments on commit debbb97

Please sign in to comment.