Skip to content

Commit c0fd3a8

Browse files
committed
Fixed issue that prevented save panel from openning
1 parent 2220b54 commit c0fd3a8

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

ScreenToGif/UserControls/KGySoftGifOptionsPanel.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@
7070
<!--Bit Level-->
7171
<c:ExtendedCheckBox Grid.Row="5" Grid.Column="0" Margin="3,8,5,8" Text="{DynamicResource S.SaveAs.KGySoft.Quantizer.CustomBitLevel}"
7272
ToolTip="{DynamicResource S.SaveAs.KGySoft.Quantizer.CustomBitLevel.Info}" IsChecked="{Binding IsCustomBitLevel}"
73-
Visibility="{Binding ElementName=QuantizersComboBox, Path=SelectedItem.(vm:QuantizerDescriptor.HasBitLevel), Converter={StaticResource Bool2Visibility}}"/>
73+
Visibility="{Binding ElementName=QuantizersComboBox, Path=SelectedItem.(vm:QuantizerDescriptor.HasBitLevel), Converter={StaticResource Bool2Visibility}, FallbackValue={x:Static Visibility.Collapsed}}"/>
7474
<Slider Grid.Row="5" Grid.Column="1" Margin="0,3" TickPlacement="BottomRight" AutoToolTipPlacement="TopLeft"
75-
Minimum="1" Maximum="8" TickFrequency="1" Value="{Binding BitLevel}" SmallChange="1" LargeChange="32"
75+
Minimum="1" Maximum="8" TickFrequency="1" Value="{Binding BitLevel, FallbackValue=0}" SmallChange="1" LargeChange="32"
7676
ToolTip="{DynamicResource S.SaveAs.KGySoft.Quantizer.BitLevel.Info}">
7777
<Slider.Visibility>
7878
<MultiBinding Converter="{StaticResource BoolAndToVisibility}">

ScreenToGif/Windows/Editor.xaml.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,8 @@ private void Window_DpiChanged(object sender, DpiChangedEventArgs e)
333333

334334
ZoomBoxControl.RefreshImage();
335335

336-
Cancel_Executed(sender, null);
336+
if (e.OriginalSource is not Image)
337+
Cancel_Executed(sender, null);
337338
}
338339

339340
private void Window_Closing(object sender, CancelEventArgs e)

0 commit comments

Comments
 (0)