From ff0e9c0d9484961ea948ca9a08e6ddab7662b927 Mon Sep 17 00:00:00 2001 From: tannevaled Date: Sun, 30 Aug 2026 23:38:15 +0200 Subject: [PATCH] application: take tray v0.7.1, where what the tray shows is locked The icon, the tooltip and the menu were plain fields in tray: the platform loop reads all three to draw them, and an application changing its menu when its state changes writes them from wherever that state lives. The race detector caught it in another consumer; on a Mac it is the AppKit main loop reading a slice header another goroutine is replacing. Nothing here changes shape -- the upgrade is additive -- but every application built on this package gets the fix, which is the reason this package exists to be upgraded once instead of each of them separately. --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index d2b775d..3d885a6 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.26.4 require ( github.com/go-widgets/toolkit v0.288.0 - github.com/go-widgets/tray v0.5.1 + github.com/go-widgets/tray v0.7.1 github.com/go-widgets/window v0.57.0 ) diff --git a/go.sum b/go.sum index cd1b7ac..e730175 100644 --- a/go.sum +++ b/go.sum @@ -46,8 +46,8 @@ github.com/go-widgets/painter v0.11.0 h1:xsj4zTz8B43rOZnWrx7ZsaUBMgJyvgaE/Pq2Ffc github.com/go-widgets/painter v0.11.0/go.mod h1:IPRLqdUJuJX8sfuHeYLZCzjoLvA0ApbOlyIAVmguJDQ= github.com/go-widgets/toolkit v0.288.0 h1:vtQDXZAbZRSQqIoEYQf/xE8ARE4YV4QtfHGHgnKP6NM= github.com/go-widgets/toolkit v0.288.0/go.mod h1:IaRQFcV6FjxwzGXpHd3dpEoWZ+82f7dMPwtEZSH4nIg= -github.com/go-widgets/tray v0.5.1 h1:ThQp0QQYmUs9in0Ur2ujAVQ6yfa1+y/gycvLtoDo1Io= -github.com/go-widgets/tray v0.5.1/go.mod h1:A0Sb4PeLyO0F7Y5BgFFWH8WdKoIWNZcN4H5W+FY6CV8= +github.com/go-widgets/tray v0.7.1 h1:k+zvOtN/Zj2cCZVNBWCXB3Hx5QoVKKgNBZ6uvmj6V2s= +github.com/go-widgets/tray v0.7.1/go.mod h1:A0Sb4PeLyO0F7Y5BgFFWH8WdKoIWNZcN4H5W+FY6CV8= github.com/go-widgets/window v0.57.0 h1:FNPDgAddoQV3NSUid4X4OL0qNP1tD34daEOum89/aBY= github.com/go-widgets/window v0.57.0/go.mod h1:nJjeM1Zq9Jbr/j4KsC5WJDOQt9Ywz3At6ZK60CiZdos= github.com/godbus/dbus/v5 v5.2.2 h1:TUR3TgtSVDmjiXOgAAyaZbYmIeP3DPkld3jgKGV8mXQ=