From 2993495d05874dc53d326e665e00737c3a187f5a Mon Sep 17 00:00:00 2001 From: atdunbg Date: Wed, 1 Jul 2026 13:32:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20v0.8.1=20=E4=BF=AE=E5=A4=8D=E5=85=B3?= =?UTF-8?q?=E9=97=AD=E5=88=B0=E6=89=98=E7=9B=98=E4=B8=8D=E7=94=9F=E6=95=88?= =?UTF-8?q?=EF=BC=88=E8=A1=A5=E9=BD=90=20core:window:allow-hide=20?= =?UTF-8?q?=E6=9D=83=E9=99=90=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 5 +++++ package.json | 2 +- src-tauri/Cargo.toml | 2 +- src-tauri/capabilities/default.json | 2 ++ src-tauri/tauri.conf.json | 2 +- 5 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 89cb915..4bf9012 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## v0.8.1 + +### 🐛 修复 +- **关闭到托盘不生效**:点击关闭按钮选择「最小化到托盘」或「直接退出」时,窗口未隐藏/退出。原因是 `capabilities/default.json` 缺少 `core:window:allow-hide` 权限,前端调用 `currentWindow.hide()` 被 Tauri 2 权限系统静默拦截。补齐 `allow-hide` 与 `allow-show` 权限 + ## v0.8.0 本次版本为架构重构与交互升级版本,涵盖皮肤系统、详情页架构、侧边栏交互、播放器稳定性、底层模块拆分等方面的系统性优化。 diff --git a/package.json b/package.json index e0f46f3..d994a3c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "nekosonic", "private": true, - "version": "0.8.0", + "version": "0.8.1", "type": "module", "scripts": { "dev": "vite", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 1bf08b9..7b70cc3 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "Nekosonic" -version = "0.8.0" +version = "0.8.1" description = "A Simple music app" authors = ["atdunbg"] edition = "2021" diff --git a/src-tauri/capabilities/default.json b/src-tauri/capabilities/default.json index f216ddd..ee7408c 100644 --- a/src-tauri/capabilities/default.json +++ b/src-tauri/capabilities/default.json @@ -12,6 +12,8 @@ "core:window:allow-unmaximize", "core:window:allow-is-maximized", "core:window:allow-start-dragging", + "core:window:allow-hide", + "core:window:allow-show", "core:path:default", "opener:default", "global-shortcut:allow-is-registered", diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index f98f7ad..89f1948 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.tauri.app/config/2", "productName": "Nekosonic", - "version": "0.8.0", + "version": "0.8.1", "identifier": "com.atdunbg.Nekosonic", "build": { "beforeDevCommand": "npm run dev",