mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-15 22:28:10 +08:00
Rework clipboard handling to carry embedded resources across documents (#4296)
* Move clipboard code to its dedicated handler * Adapt clipboard format to work with resources * Restore visibility, lock, and collapse state when pasting layers --------- Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
@@ -877,7 +877,7 @@ impl EditorWrapper {
|
||||
None
|
||||
};
|
||||
|
||||
let message = PortfolioMessage::PasteImage {
|
||||
let message = PortfolioMessage::InsertImage {
|
||||
name,
|
||||
image,
|
||||
mouse,
|
||||
@@ -899,7 +899,7 @@ impl EditorWrapper {
|
||||
None
|
||||
};
|
||||
|
||||
let message = PortfolioMessage::PasteSvg {
|
||||
let message = PortfolioMessage::InsertSvg {
|
||||
name,
|
||||
svg,
|
||||
mouse,
|
||||
|
||||
Reference in New Issue
Block a user