Preserve layer stacking order on copy and paste (#668)

Fix Issue#610

Fix Issue#610  by reversing the direction of the copy buffer entry vector. This will preserve the layer ordering and match the behaviour of PasteIntoFolder.
This commit is contained in:
Nupsi 2022-06-08 08:03:48 +03:00 committed by Keavon Chambers
parent e623f7cc41
commit a02b7a4635
1 changed files with 1 additions and 1 deletions

View File

@ -414,7 +414,7 @@ impl MessageHandler<PortfolioMessage, &InputPreprocessorMessageHandler> for Port
responses.push_back(DeselectAllLayers.into());
responses.push_back(StartTransaction.into());
for entry in data {
for entry in data.iter().rev() {
let destination_path = [shallowest_common_folder.to_vec(), vec![generate_uuid()]].concat();
responses.push_front(