Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
fix: Add tooltip to system tray icon
eust-wa84c05cf9140
diff --git a/app/tray/wintray/tray.go b/app/tray/wintray/tray.goindex ccd087a17..6f8278939 100644--- a/app/tray/wintray/tray.go+++ b/app/tray/wintray/tray.go@@ -11,6 +11,7 @@ import ("path/filepath""sort""sync"+ "syscall""unsafe""golang.org/x/sys/windows"@@ -433,7 +434,12 @@ func (t *winTray) setIcon(src string) error {t.muNID.Lock()defer t.muNID.Unlock()t.nid.Icon = h- t.nid.Flags |= NIF_ICON+ t.nid.Flags |= NIF_ICON | NIF_TIP+ if toolTipUTF16, err := syscall.UTF16FromString(commontray.ToolTip); err == nil {+ copy(t.nid.Tip[:], toolTipUTF16)+ } else {+ return err+ }t.nid.Size = uint32(unsafe.Sizeof(*t.nid))return t.nid.modify()diff --git a/app/tray/wintray/w32api.go b/app/tray/wintray/w32api.goindex a1e0381de..7c7c0ac8a 100644--- a/app/tray/wintray/w32api.go+++ b/app/tray/wintray/w32api.go@@ -61,6 +61,7 @@ const (MIIM_SUBMENU = 0x00000004MIM_APPLYTOSUBMENUS = 0x80000000NIF_ICON = 0x00000002+ NIF_TIP = 0x00000004NIF_INFO = 0x00000010NIF_MESSAGE = 0x00000001SW_HIDE = 0