fix(原生桌面): 修复任务栏重复图标
build.yaml / build (push) Successful in 44s

This commit is contained in:
xiaoqidun committed 2026-10-25 16:33:44 +08:00
1 parent 8774ac67f1
commit 1c576bde18
1 file changed
+4 -2
+4 -2
View File
@@ -1050,15 +1050,17 @@ func (h *Host) close() {
// 返回: guigo.Options 窗口配置, error 配置错误
func windowOptions(dataDir string) (guigo.Options, error) {
appID := "ofdgo"
cacheName := appID
if runtime.GOOS == "windows" {
appID = "OFDGo"
appID = ""
cacheName = "OFDGo"
}
if dataDir == "" {
cache, err := os.UserCacheDir()
if err != nil {
return guigo.Options{}, err
}
dataDir = filepath.Join(cache, appID)
dataDir = filepath.Join(cache, cacheName)
}
dataDir, err := filepath.Abs(dataDir)
if err != nil {