Files
code-utils/tray_windows.go
李琦 7c4109f687 feat: 提交详情能看 diff,也能丢给 AI 审这一次改动。文件检查可单独排除路径,TODO 只认大写,避免把 todo 表和模块当成待办标记。
热力图按容器宽度铺满一年,不再横向滚动。托盘右键换成可换皮肤的弹层;更新下载显示进度,退出后再由脚本拉起安装器,避免还占着 exe。
2026-08-19 15:46:03 +08:00

26 lines
499 B
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//go:build windows
package main
import (
"github.com/wailsapp/wails/v3/pkg/application"
"github.com/wailsapp/wails/v3/pkg/w32"
)
// activateTrayPopup 只置前 HWND不调用 WebView2 FocusMoveFocus 失败会 os.Exit(1))。
func activateTrayPopup(win *application.WebviewWindow) {
if win == nil {
return
}
ptr := win.NativeWindow()
if ptr == nil {
return
}
hwnd := w32.HWND(uintptr(ptr))
if hwnd == 0 {
return
}
w32.SetForegroundWindow(hwnd)
w32.BringWindowToTop(hwnd)
}