Skip to content

Commit 7df3f7e

Browse files
committed
fix(servicemenu): 移除 drawPluginCardContent 中重复的 iconD 声明
wrapByWidth 引入后 iconD 已在 const 块前声明,下方 const iconD = 28.0 造成 redeclared 错误,golangci-lint typecheck 失败。 CI: golangci-lint ✓ runmain(macos) ✓ (cancelled 依赖 lint 通过)
1 parent be7cd80 commit 7df3f7e

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

plugin/servicemenu/main.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,6 @@ func drawPluginCardContent(c *gg.Context, x, y, w, h int, name, brief string, en
894894

895895
// 状态徽章:右侧圆点 + 矢量勾/叉(✓/✗ 在 GlowSansSC 无字形,DrawString
896896
// 永远渲染不出来,改用直线段绘制图标,必然渲染且远看清晰)
897-
const iconD = 28.0
898897
cx := float64(x+w) - 16 - iconD/2
899898
cy := float64(y) + float64(h)/2
900899
if enabled {

0 commit comments

Comments
 (0)