File tree Expand file tree Collapse file tree 1 file changed +13
-17
lines changed Expand file tree Collapse file tree 1 file changed +13
-17
lines changed Original file line number Diff line number Diff line change @@ -803,15 +803,13 @@ private void HidePreview()
803
803
[ RelayCommand ]
804
804
private void TogglePreview ( )
805
805
{
806
- switch ( InternalPreviewVisible || ExternalPreviewVisible )
806
+ if ( InternalPreviewVisible || ExternalPreviewVisible )
807
807
{
808
- case true :
809
- HidePreview ( ) ;
810
- break ;
811
-
812
- case false :
813
- ShowPreview ( ) ;
814
- break ;
808
+ HidePreview ( ) ;
809
+ }
810
+ else
811
+ {
812
+ ShowPreview ( ) ;
815
813
}
816
814
}
817
815
@@ -857,15 +855,13 @@ private void HideInternalPreview()
857
855
858
856
public void ResetPreview ( )
859
857
{
860
- switch ( Settings . AlwaysPreview )
858
+ if ( Settings . AlwaysPreview )
861
859
{
862
- case true :
863
- ShowPreview ( ) ;
864
- break ;
865
-
866
- case false :
867
- HidePreview ( ) ;
868
- break ;
860
+ ShowPreview ( ) ;
861
+ }
862
+ else
863
+ {
864
+ HidePreview ( ) ;
869
865
}
870
866
}
871
867
@@ -885,7 +881,7 @@ private void UpdatePreview()
885
881
break ;
886
882
887
883
case true
888
- when ! ExternalPreviewVisible && Settings . AlwaysPreview && CanExternalPreviewSelectedResult ( out var path ) :
884
+ when ! ExternalPreviewVisible && Settings . AlwaysPreview && CanExternalPreviewSelectedResult ( out var _ ) :
889
885
ShowPreview ( ) ;
890
886
break ;
891
887
You can’t perform that action at this time.
0 commit comments