MCPcopy Create free account
hub / github.com/cogentcore/core / goodContext

Method goodContext

core/funcbutton.go:286–295  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

284}
285
286func (fb *FuncButton) goodContext() Widget {
287 ctx := fb.Context
288 if fb.Context == nil {
289 if fb.This == nil {
290 return nil
291 }
292 ctx = fb.This.(Widget)
293 }
294 return ctx
295}
296
297func (fb *FuncButton) callFuncShowReturns() {
298 if fb.AfterFunc != nil {

Callers 3

confirmDialogMethod · 0.95
CallFuncMethod · 0.95
showReturnsDialogMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected