Skip to content

Demo site minor improvement#1895

Merged
JiuqingSong merged 3 commits intomasterfrom
u/jisong/donottriggercontentchanged
Jun 19, 2023
Merged

Demo site minor improvement#1895
JiuqingSong merged 3 commits intomasterfrom
u/jisong/donottriggercontentchanged

Conversation

@JiuqingSong
Copy link
Collaborator

Previously in #1805, I added a change to demo site to always trigger ContentChangedEvent when restore an undo snapshot from site pane. This causes a side effect that all further undo snapshots are gone when double click a snapshot form Undo Snapshot pane.

To adjust it, I'm adding a parameter to onRestoreSnapshot callback of SnapshotPlugin, we now only trigger this event when we click "Restore snapshot" button. If double click from the existing snapshot list.

@JiuqingSong JiuqingSong merged commit 5a8b79b into master Jun 19, 2023
@JiuqingSong JiuqingSong deleted the u/jisong/donottriggercontentchanged branch June 19, 2023 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants