Skip to content

Commit

Permalink
Finalize v1.1.1
Browse files Browse the repository at this point in the history
Code clean-up & crush some bugs.
  • Loading branch information
ChiNoel-osu committed Dec 9, 2022
1 parent 5e3a0d6 commit 4e1c834
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
4 changes: 0 additions & 4 deletions Converter/DoubleDivideBy.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;

namespace FolderThumbnailExplorer.Converter
Expand Down
2 changes: 1 addition & 1 deletion View/ImageControl.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ private void SlideInterval_MouseWheel(object sender, System.Windows.Input.MouseW
}
}
private void AOTBtn_Changed(object sender, RoutedEventArgs e)
{
{
parentWnd.Topmost = e.RoutedEvent.Name switch
{
"Checked" => true,
Expand Down
5 changes: 3 additions & 2 deletions View/PhotoViewer.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,12 @@ private void BigImage_MouseWheel(object sender, MouseWheelEventArgs e)
if (e.Delta > 0 && PVVM.ListSelectedIndex > 0)
{
if (PVVM.DoubleTurn) PVVM.ListSelectedIndex--;
PVVM.ListSelectedIndex--;
try { checked { PVVM.ListSelectedIndex--; } }
catch (System.OverflowException) { }
}
else if (e.Delta < 0 && PVVM.ListSelectedIndex < PVVM.ImageCount)
{
if(PVVM.DoubleTurn) PVVM.ListSelectedIndex++;
if (PVVM.DoubleTurn) PVVM.ListSelectedIndex++;
PVVM.ListSelectedIndex++;
}
else
Expand Down
2 changes: 1 addition & 1 deletion ViewModel/MainPageViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public void ReGetContent()
catch (System.Runtime.InteropServices.COMException)
{
GC.Collect();
continue; //Stupid cloud storages, skip.
continue; //Stupid cloud storages, skip.
}
finally //This is VITAL for it to be passed between threads.
{ bitmap.Freeze(); }
Expand Down

0 comments on commit 4e1c834

Please sign in to comment.