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

Commit

Permalink
刷新列表&更新PixivFS版本
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiichiamane committed Apr 23, 2019
1 parent 8299eae commit 0682ef1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions PixivFSUWP/Data/OverAll.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ public static void RefreshRecommendList()
RecommendList = new RecommendIllustsCollection();
}

public static void RefreshBookmarkList()
{
BookmarkList.StopLoading();
BookmarkList.Clear();
BookmarkList = new BookmarkIllustsCollection();
}

static async Task<MemoryStream> downloadImage(string Uri)
{
var resStream = await Task.Run(() => new PixivAppAPI(GlobalBaseAPI).csfriendly_no_auth_requests_call_stream("GET",
Expand Down
2 changes: 2 additions & 0 deletions PixivFSUWP/MainPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,15 @@ private async void NavControl_SelectionChanged(NavigationView sender, Navigation
switch (sender.MenuItems.IndexOf(args.SelectedItem))
{
case 0:
OverAll.RefreshRecommendList();
ContentFrame.Navigate(typeof(WaterfallPage), WaterfallPage.ListContent.Recommend);
NavPlaceholder.IsEnabled = false;
await Task.Delay(TimeSpan.FromMilliseconds(350));
NavSeparator.Visibility = Visibility.Collapsed;
NavPlaceholder.Visibility = Visibility.Collapsed;
break;
case 1:
OverAll.RefreshBookmarkList();
ContentFrame.Navigate(typeof(WaterfallPage), WaterfallPage.ListContent.Bookmark);
NavPlaceholder.IsEnabled = false;
await Task.Delay(TimeSpan.FromMilliseconds(350));
Expand Down
2 changes: 1 addition & 1 deletion PixivFSUWP/PixivFSUWP.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@
<Version>6.2.8</Version>
</PackageReference>
<PackageReference Include="PixivFS">
<Version>0.1.2</Version>
<Version>0.1.4</Version>
</PackageReference>
<PackageReference Include="PixivFSCS">
<Version>0.1.2</Version>
Expand Down

0 comments on commit 0682ef1

Please sign in to comment.