mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-25 09:08:12 +08:00
Modify all message enum data to use named struct values, not tuples (#479)
* Massively reorganize and clean up the whole Rust codebase * Modify all message enum data to use named struct values, not tuples
This commit is contained in:
@@ -537,7 +537,7 @@ impl Document {
|
||||
return Err(DocumentError::IndexOutOfBounds);
|
||||
}
|
||||
}
|
||||
Operation::RenameLayer { path, name } => {
|
||||
Operation::RenameLayer { layer_path: path, new_name: name } => {
|
||||
self.layer_mut(path)?.name = Some(name.clone());
|
||||
Some(vec![LayerChanged { path: path.clone() }])
|
||||
}
|
||||
|
||||
@@ -71,8 +71,8 @@ pub enum Operation {
|
||||
path: Vec<LayerId>,
|
||||
},
|
||||
RenameLayer {
|
||||
path: Vec<LayerId>,
|
||||
name: String,
|
||||
layer_path: Vec<LayerId>,
|
||||
new_name: String,
|
||||
},
|
||||
InsertLayer {
|
||||
layer: Layer,
|
||||
|
||||
Reference in New Issue
Block a user