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

Method Add

selection.go:64–70  ·  view source on GitHub ↗
(card *Card)

Source from the content-addressed store, hash-verified

62}
63
64func (selection *Selection) Add(card *Card) {
65 if !card.selected {
66 card.Page.Raise(card)
67 }
68 card.Select()
69 selection.Cards[card] = true
70}
71
72func (selection *Selection) Remove(card *Card) {
73 card.Deselect()

Callers 1

UpdateMethod · 0.95

Calls 2

RaiseMethod · 0.80
SelectMethod · 0.45

Tested by

no test coverage detected