浏览代码

Don't close crop control when copying

Ruben 8 月之前
父节点
当前提交
53084777a6
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      src/PicView.Avalonia/ViewModels/ImageCropperViewModel.cs

+ 0 - 2
src/PicView.Avalonia/ViewModels/ImageCropperViewModel.cs

@@ -146,8 +146,6 @@ public class ImageCropperViewModel : ViewModelBase
     {
     {
         if (UIHelper.GetMainView.DataContext is not MainViewModel vm) return;
         if (UIHelper.GetMainView.DataContext is not MainViewModel vm) return;
         if (vm.ImageSource is not Bitmap sourceBitmap) return;
         if (vm.ImageSource is not Bitmap sourceBitmap) return;
-        
-        CropFunctions.CloseCropControl(vm);
 
 
         var x = Convert.ToInt32(SelectionX / AspectRatio);
         var x = Convert.ToInt32(SelectionX / AspectRatio);
         var y = Convert.ToInt32(SelectionY / AspectRatio);
         var y = Convert.ToInt32(SelectionY / AspectRatio);