From 7ea432fa130c2d3a754855736ccd72497ff6533b Mon Sep 17 00:00:00 2001 From: Dominik Honnef Date: Tue, 2 Jan 2024 20:51:25 +0100 Subject: [PATCH] widget: don't refer to non-existent method Clickable.Clicks Signed-off-by: Dominik Honnef --- widget/button.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/widget/button.go b/widget/button.go index 2a335127..e5e06661 100644 --- a/widget/button.go +++ b/widget/button.go @@ -53,8 +53,8 @@ func (b *Clickable) Click() { b.requestClicks++ } -// Clicked reports whether there are pending clicks as would be -// reported by Clicks. If so, Clicked removes the earliest click. +// Clicked reports whether there are pending clicks. If so, Clicked +// removes the earliest click. func (b *Clickable) Clicked(gtx layout.Context) bool { if len(b.clicks) > 0 { b.clicks = b.clicks[1:]