feat: 复制属性后显示提示

This commit is contained in:
Nicek
2026-10-29 09:33:55 +08:00
committed by trae-solo-agent
parent 7ea6a424e9
commit f8ddb5a0a8
+5
View File
@@ -188,6 +188,11 @@ pub fn invoke(app: &mut FigApp, id: &str) {
"collab.join" => crate::live::open_join(app, ""),
// So is the server address for publishing (it carries the server key).
"collab.publish" => crate::live::open_publish(app),
"edit.copyProperties" => {
if app.run(id, json!({})).is_some() {
app.toast(tr("Properties copied"));
}
}
"edit.copy" | "edit.cut" => {
let ids = app.session.selection();
// For other apps: text layers' text, other layers as SVG; taken before a cut removes them.