preload animate bar

This commit is contained in:
2020-05-15 09:27:53 +08:00
parent 2fe66d4f8d
commit bfc348d7e2
2 changed files with 6 additions and 7 deletions

View File

@@ -131,6 +131,7 @@ namespace Pixiview.Illust
if (illust != null)
{
IsAnimateSliderVisible = illust.IsAnimeVisible;
LoadIllust(illust);
}
}
@@ -352,9 +353,6 @@ namespace Pixiview.Illust
}
}
var isAnime = illustItem.IllustType == IllustType.Anime;
IsAnimateSliderVisible = isAnime;
Task.Run(() => DoLoadImage(0, true));
if (items.Length > 1)
{
@@ -363,7 +361,7 @@ namespace Pixiview.Illust
DoLoadImage(i);
});
}
else if (isAnime)
else if (illustItem.IsAnimeVisible)
{
// anime
ugoiraData = Stores.LoadIllustUgoiraData(illustItem.Id);