mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-20 11:28:30 +08:00
Add transactions for temporary modifications to the document (#77)
* Add transactions for temporary modifications to the document * Add DiscardTempFolder Operation * Add clearFolder operation * Rename Temp to Work
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
use crate::LayerId;
|
||||
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
pub enum Operation {
|
||||
AddCircle {
|
||||
path: Vec<LayerId>,
|
||||
@@ -39,4 +40,10 @@ pub enum Operation {
|
||||
AddFolder {
|
||||
path: Vec<LayerId>,
|
||||
},
|
||||
MountWorkingFolder {
|
||||
path: Vec<LayerId>,
|
||||
},
|
||||
DiscardWorkingFolder,
|
||||
ClearWorkingFolder,
|
||||
CommitTransaction,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user