提交 c0fd3a8a 编写于 作者: N Nicke Manarin

Fixed issue that prevented save panel from openning

上级 2220b543
...@@ -70,9 +70,9 @@ ...@@ -70,9 +70,9 @@
<!--Bit Level--> <!--Bit Level-->
<c:ExtendedCheckBox Grid.Row="5" Grid.Column="0" Margin="3,8,5,8" Text="{DynamicResource S.SaveAs.KGySoft.Quantizer.CustomBitLevel}" <c:ExtendedCheckBox Grid.Row="5" Grid.Column="0" Margin="3,8,5,8" Text="{DynamicResource S.SaveAs.KGySoft.Quantizer.CustomBitLevel}"
ToolTip="{DynamicResource S.SaveAs.KGySoft.Quantizer.CustomBitLevel.Info}" IsChecked="{Binding IsCustomBitLevel}" ToolTip="{DynamicResource S.SaveAs.KGySoft.Quantizer.CustomBitLevel.Info}" IsChecked="{Binding IsCustomBitLevel}"
Visibility="{Binding ElementName=QuantizersComboBox, Path=SelectedItem.(vm:QuantizerDescriptor.HasBitLevel), Converter={StaticResource Bool2Visibility}}"/> Visibility="{Binding ElementName=QuantizersComboBox, Path=SelectedItem.(vm:QuantizerDescriptor.HasBitLevel), Converter={StaticResource Bool2Visibility}, FallbackValue={x:Static Visibility.Collapsed}}"/>
<Slider Grid.Row="5" Grid.Column="1" Margin="0,3" TickPlacement="BottomRight" AutoToolTipPlacement="TopLeft" <Slider Grid.Row="5" Grid.Column="1" Margin="0,3" TickPlacement="BottomRight" AutoToolTipPlacement="TopLeft"
Minimum="1" Maximum="8" TickFrequency="1" Value="{Binding BitLevel}" SmallChange="1" LargeChange="32" Minimum="1" Maximum="8" TickFrequency="1" Value="{Binding BitLevel, FallbackValue=0}" SmallChange="1" LargeChange="32"
ToolTip="{DynamicResource S.SaveAs.KGySoft.Quantizer.BitLevel.Info}"> ToolTip="{DynamicResource S.SaveAs.KGySoft.Quantizer.BitLevel.Info}">
<Slider.Visibility> <Slider.Visibility>
<MultiBinding Converter="{StaticResource BoolAndToVisibility}"> <MultiBinding Converter="{StaticResource BoolAndToVisibility}">
......
...@@ -333,7 +333,8 @@ namespace ScreenToGif.Windows ...@@ -333,7 +333,8 @@ namespace ScreenToGif.Windows
ZoomBoxControl.RefreshImage(); ZoomBoxControl.RefreshImage();
Cancel_Executed(sender, null); if (e.OriginalSource is not Image)
Cancel_Executed(sender, null);
} }
private void Window_Closing(object sender, CancelEventArgs e) private void Window_Closing(object sender, CancelEventArgs e)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册