`markAllDirty` also needs to modify the redo list

pull/5352/head
GogoVega 2025-11-12 10:28:28 +01:00
parent 7700aa9121
commit 2b65cf02b1
No known key found for this signature in database
GPG Key ID: E1E048B63AC5AC2B
1 changed files with 2 additions and 2 deletions

View File

@ -833,8 +833,8 @@ RED.history = (function() {
return {
//TODO: this function is a placeholder until there is a 'save' event that can be listened to
markAllDirty: function() {
for (var i=0;i<undoHistory.length;i++) {
undoHistory[i].dirty = true;
for (const event of [...undoHistory, ...redoHistory]) {
event.dirty = true;
}
},
list: function() {