MCPcopy Create free account
hub / github.com/docker/docker-agent / resetClickTracking

Method resetClickTracking

cmd/root/agent_picker.go:446–449  ·  view source on GitHub ↗

resetClickTracking clears double-click state so an unrelated later click can't be paired with a stale earlier one (e.g. across opening/closing the details dialog).

()

Source from the content-addressed store, hash-verified

444// can't be paired with a stale earlier one (e.g. across opening/closing the
445// details dialog).
446func (m *agentPickerModel) resetClickTracking() {
447 m.lastClickIndex = -1
448 m.lastClickTime = time.Time{}
449}
450
451// detailsContent returns the text shown in the YAML dialog for a choice.
452func (m *agentPickerModel) detailsContent(choice agentChoice) string {

Callers 3

UpdateMethod · 0.95
handleMouseClickMethod · 0.95
openDetailsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected