MCPcopy Create free account
hub / github.com/SolarLune/masterplan / Apply

Method Apply

undo.go:310–322  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

308}
309
310func (undoState *UndoState) Apply() {
311
312 undoState.Card.Deserialize(undoState.Serialized)
313 undoState.Card.ReceiveMessage(NewMessage(MessageUndoRedo, undoState.Card, nil))
314 undoState.Card.CreateUndoState = false
315
316 if undoState.Deletion {
317 undoState.Card.Page.DeleteCards(undoState.Card)
318 } else if !undoState.Card.Valid {
319 undoState.Card.Page.RestoreCards(undoState.Card)
320 }
321
322}

Callers 2

UndoMethod · 0.80
RedoMethod · 0.80

Calls 5

NewMessageFunction · 0.85
DeleteCardsMethod · 0.80
RestoreCardsMethod · 0.80
ReceiveMessageMethod · 0.65
DeserializeMethod · 0.45

Tested by

no test coverage detected