mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-30 01:27:26 +08:00
This commit is contained in:
1 parent
f1864952ad
commit
41a50d9e96
17 files changed
+629
-181
No files matched your search
@@ -101,7 +101,7 @@ func (e *Editor) SetPageActions(index int, actions []Action) error {
|
||||
}
|
||||
before, after := cloneEditorData(page.Actions), cloneEditorData(actions)
|
||||
page.Actions = cloneEditorData(after)
|
||||
if change := e.recordChange(); change != nil {
|
||||
if change := e.recordChange(index); change != nil {
|
||||
change.undo = func(e *Editor) { e.pages[index].Actions = cloneEditorData(before) }
|
||||
change.redo = func(e *Editor) { e.pages[index].Actions = cloneEditorData(after) }
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user