Skip to content

Commit

Permalink
v1.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiNoel-osu committed Apr 30, 2023
1 parent 0d95fff commit b8313a6
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
2 changes: 1 addition & 1 deletion FolderThumbnailExplorer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<ApplicationIcon>icon.ico</ApplicationIcon>
<IsPublishable>False</IsPublishable>
<SignAssembly>False</SignAssembly>
<Version>1.2.4</Version>
<Version>1.2.5</Version>
<Authors>Victor</Authors>
<Copyright>GNU AFFERO GENERAL PUBLIC LICENSE</Copyright>
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
Expand Down
4 changes: 3 additions & 1 deletion View/ImageControl.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,9 @@
Margin="0,0,5,0"
Height="20"
MinWidth="25"
Text="{Binding LoadThreshold, UpdateSourceTrigger=PropertyChanged}" />
MouseWheel="LoadThreshold_MouseWheel"
Text="{Binding LoadThreshold, UpdateSourceTrigger=PropertyChanged}"
ToolTip="{x:Static loc:Loc.PVPopUpSettingsLoadThresholdTT}" />
</DockPanel>
<!--#endregion-->
<!--#region Save viewer pos-->
Expand Down
18 changes: 17 additions & 1 deletion View/ImageControl.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ private void SettingsPopup_MouseLeave(object sender, System.Windows.Input.MouseE

#region Settings related UI Code
private void SlideInterval_MouseWheel(object sender, System.Windows.Input.MouseWheelEventArgs e)
{
{ //Use mouse wheel to control slideshow interval.
if (short.TryParse((string?)((TextBox)sender).Text, out short parsed))
{
try
Expand All @@ -58,6 +58,22 @@ private void SlideInterval_MouseWheel(object sender, System.Windows.Input.MouseW
catch (OverflowException) { }
}
}
private void LoadThreshold_MouseWheel(object sender, System.Windows.Input.MouseWheelEventArgs e)
{
if (short.TryParse((string?)((TextBox)sender).Text, out short parsed))
{
try
{
checked
{
parsed = (short)(e.Delta > 0 ? parsed + 1 : parsed - 1);
if (parsed < 1) parsed = 1;
}
((TextBox)sender).Text = parsed.ToString();
}
catch (OverflowException) { }
}
}
private void AOTBtn_Changed(object sender, RoutedEventArgs e)
{
parentWnd.Topmost = e.RoutedEvent.Name switch
Expand Down

0 comments on commit b8313a6

Please sign in to comment.