MCPcopy
hub / github.com/lxn/walk / Dispose

Method Dispose

tooltiperrorpresenter.go:49–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47}
48
49func (ttep *ToolTipErrorPresenter) Dispose() {
50 if ttep.toolTip != nil {
51 ttep.untrack()
52 ttep.toolTip.Dispose()
53 ttep.toolTip = nil
54 if ttep.form != nil {
55 ttep.form.AsFormBase().activatingPublisher.event.Detach(ttep.formActivatingHandle)
56 ttep.form.AsFormBase().deactivatingPublisher.event.Detach(ttep.formDeactivatingHandle)
57 ttep.form = nil
58 }
59 }
60}
61
62func (ttep *ToolTipErrorPresenter) PresentError(err error, widget Widget) {
63 if ttep.toolTip == nil {

Callers

nothing calls this directly

Calls 4

untrackMethod · 0.95
DisposeMethod · 0.65
AsFormBaseMethod · 0.65
DetachMethod · 0.45

Tested by

no test coverage detected