From 34de0be0a1476d8ad330c76107fa98ca85aeea7f Mon Sep 17 00:00:00 2001 From: nathan wagner Date: Fri, 16 Feb 2024 15:23:06 +0000 Subject: [PATCH] checking if context change is necessary --- animateDoorbell.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/animateDoorbell.go b/animateDoorbell.go index a09e336..4da00ee 100644 --- a/animateDoorbell.go +++ b/animateDoorbell.go @@ -22,12 +22,12 @@ func (a *Animation) animateDoorbell() { } else { a.doorbell = Doorbell{} a.countDown = 5000 - a.ctx.Pop() + //a.ctx.Pop() } } func (a *Animation) loadImage(imgType string, img string) { baseImage, _ := b64.StdEncoding.DecodeString(img) bigImage, _, _ := image.Decode(bytes.NewReader(baseImage)) a.doorbell.image = imaging.Resize(bigImage, 64, 64, imaging.Lanczos) - a.ctx.Push() + //a.ctx.Push() }