Skip to content

Commit

Permalink
v1.7.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Guerra24 committed Feb 4, 2022
1 parent 0037cb9 commit dc87a05
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion LRReader.UWP/Package.appxmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<Identity
Name="63705Guerra24.LRReader"
Publisher="CN=690E488B-1B49-4006-8D8D-14F81EFE17C5"
Version="1.7.5.0" />
Version="1.7.6.0" />

<mp:PhoneIdentity PhoneProductId="eccfefd4-5961-4ad1-894e-3000dc4fe01a" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>

Expand Down
13 changes: 12 additions & 1 deletion LRReader.UWP/Views/Tabs/Content/ArchiveTabContent.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,6 @@ private void ReaderControl_KeyUp(object sender, KeyRoutedEventArgs e)
e.Key == VirtualKey.Escape || e.Key == VirtualKey.D || e.Key == VirtualKey.A || e.Key == VirtualKey.W || e.Key == VirtualKey.S)
e.Handled = true;

double offset = ScrollViewer.VerticalOffset;
switch (e.Key)
{
case VirtualKey.Right:
Expand Down Expand Up @@ -542,6 +541,18 @@ private async Task ChangePage()
return;
await ReaderImage.ChangePage(Data.ReaderContent);
ReaderImage.FadeInPage();

Preload(Data.ArchiveImagesReader.ElementAtOrDefault(Data.ReaderIndex + 1));
Preload(Data.ArchiveImagesReader.ElementAtOrDefault(Data.ReaderIndex + 2));
Preload(Data.ArchiveImagesReader.ElementAtOrDefault(Data.ReaderIndex + 3));
}

private async void Preload(ReaderImageSet set)
{
if (set == null)
return;
await Service.Images.GetImageCached(set.LeftImage);
await Service.Images.GetImageCached(set.RightImage);
}

private void ScrollViewer_SizeChanged(object sender, SizeChangedEventArgs e) => FitImages(Data.UseVerticalReader);
Expand Down
2 changes: 1 addition & 1 deletion Util/Package.appxmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<Identity
Name="Guerra24.LRReader"
Publisher="CN=Guerra24, O=Guerra24, C=GT"
Version="1.7.5.0" />
Version="1.7.6.0" />

<mp:PhoneIdentity PhoneProductId="97639259-a9d5-4784-8ec1-a88609560ca7" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>

Expand Down
2 changes: 1 addition & 1 deletion Util/PrepareForUpload.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ $content = [System.IO.File]::ReadAllText($installer).Replace($text, "")
[System.IO.File]::WriteAllText($installer, $content)

Set-Location "./LRReader.UWP"
Remote-Item -Path $html
Remove-Item -Path $html
Remove-Item -Path "./Install.ps1","./Add-AppDevPackage.ps1"
Remove-Item -Path "./Add-AppDevPackage.resources" –recurse
Set-Location "./Dependencies/"
Expand Down

0 comments on commit dc87a05

Please sign in to comment.