Skip to content

Commit

Permalink
Mark Sheet as not empty when pasted of dropped files
Browse files Browse the repository at this point in the history
(cherry picked from commit 800b2b8)
  • Loading branch information
Humberd committed Mar 23, 2024
1 parent 49f3f8e commit 3fb23fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Assets Editor/SprEditor.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ private void OnPaste(object sender, ExecutedRoutedEventArgs e)
{
var files = Clipboard.GetFileDropList();
MakeFilesAsSprites(files.Cast<string>().ToArray(), focusedIndex, null);
EmptyTiles = false;
}
}

Expand Down Expand Up @@ -238,6 +239,7 @@ private void Border_Drop(object sender, DragEventArgs e)
var targetImage = Utils.GetLogicalChildCollection<Image>(targetBorder)[0];
(targetImage.Source, sourceImage.Source) = (sourceImage.Source, targetImage.Source);
}
EmptyTiles = false;
ClearBorders();
}
}
Expand Down

0 comments on commit 3fb23fa

Please sign in to comment.