563 Commits

Author SHA1 Message Date
maotoumao
cc1105ec1d fix(windowManager): avoid white screen when restoring from tray on Windows
On Windows, calling hide() on an already-minimized window causes Chromium to release the GPU compositor surface. Subsequent restore() then leaves the client area blank (window frame restores, content stays white) with no error logs. Typical repro: minimize main window -> click X on the taskbar thumbnail preview -> reopen from tray icon.

Switch to minimize()+setSkipTaskbar(true) on Windows so the window keeps WS_VISIBLE and Chromium never tears down the compositor. Other platforms keep hide().

Fixes #412
2026-05-14 00:15:30 +08:00
maotoumao
636f6f98c8 feat: 支持点击表头排序 2026-04-07 21:56:48 +08:00
maotoumao
7c9ab48e97 fix(migration): improve error handling and resource cleanup in legacyMigration
- Wrap musicDB usage in try/finally to guarantee close() on IDB read errors
- Wrap download data restoration in try/catch to prevent blocking subsequent migration steps
- Simplify downloadedItems from Map to Array (source musicPool already deduplicated)
- Fix duplicate comment numbering (step 3 → 3 and 4)
- Add console.warn for songs not found in pool during sheet assembly
2026-03-30 23:47:59 +08:00
猫头猫
a285917ff9 fix: restore legacy download metadata during migration (#389)
> [!CAUTION]
> PR 请提交到 dev 分支 (Please submit PR to dev branch)
> 提到其他分支将会直接关闭 PR

## PR 解决的问题 (PR Summary)

旧版数据迁移流程虽然能够恢复歌单和歌曲数据,但没有把已下载歌曲对应的下载元数据一并迁移,导致升级后这部分歌曲会丢失本地下载状态。

这个 PR 在执行旧版 IndexedDB 数据迁移时,额外恢复已下载歌曲的 downloadData
信息,并将这些歌曲重新加入“已下载”歌单,确保迁移完成后仍能正确识别本地下载文件路径和音质信息。

## 影响范围 (Impact Scope)

影响旧版本用户升级到当前版本时的数据迁移流程,主要包括:

1. 从旧版歌曲记录中提取已下载歌曲的下载信息。
2. 将下载信息写回新的 mediaMeta 存储。
3. 将对应歌曲补入“已下载”歌单。

不影响新安装用户,也不影响已经完成迁移的用户日常使用流程。
2026-03-30 23:35:13 +08:00
maotoumao
abf8654204 fix: #391 2026-03-26 23:12:15 +08:00
maotoumao
b19ddb4f9f fix: 切换音质 2026-03-26 22:59:29 +08:00
maotoumao
4f36960f75 feat: 搜索框支持关闭按钮 2026-03-26 12:58:20 +08:00
maotoumao
c987e31b1d fix: 音量i18n 2026-03-26 12:44:39 +08:00
Mo-guan
938f27cad6 fix: restore legacy download metadata during migration 2026-03-26 11:18:20 +08:00
maotoumao
d001056966 fix: 移除多余的文案 2026-03-25 00:03:57 +08:00
maotoumao
bae8700d2a feat: 支持选择歌词 (#383) 2026-03-24 23:46:27 +08:00
maotoumao
12874a5f8e feat: 双击歌词跳转到指定位置 2026-03-24 23:07:56 +08:00
maotoumao
3f7fc1b47a fix: 搜索面板出现红色下划线 2026-03-24 22:50:45 +08:00
maotoumao
33f246d79f feat: 支持禁用搜索记录面板(#384) 2026-03-24 22:48:58 +08:00
maotoumao
c4d7240faa fix: 音源加载失败时,歌曲信息没有正常更新 2026-03-24 22:29:07 +08:00
maotoumao
3e4f5ee485 chore: 更新版本号 v1.0.0-beta.4 2026-03-22 23:37:36 +08:00
maotoumao
cbf93393ed fix: #382 2026-03-22 23:36:55 +08:00
maotoumao
0440dff103 chore: 修改vscode配置 v1.0.0-beta.3 2026-03-22 12:58:59 +08:00
maotoumao
9e97620e9c chore: 修改格式化工具 2026-03-22 12:57:06 +08:00
maotoumao
4b3e06ae3b chore: 更新版本号 2026-03-22 12:54:47 +08:00
maotoumao
3959dd35ce feat: 支持输入框右键菜单 2026-03-21 22:48:46 +08:00
maotoumao
6d4446c131 feat: 支持批量删除本地歌曲 2026-03-21 22:22:40 +08:00
maotoumao
9314cb2fc1 fix: 无法导入歌单 2026-03-19 22:49:47 +08:00
maotoumao
7f62d4173a feat: 本地歌单支持多选 2026-03-19 12:06:09 +08:00
maotoumao
0b50dbe967 fix: chromium默认播放键无效 2026-03-17 21:58:52 +08:00
maotoumao
2b6d1e4729 fix: #376 2026-03-17 21:39:11 +08:00
maotoumao
9dd985a3b0 fix: #373 2026-03-17 19:22:22 +08:00
maotoumao
b5733a15cb chore: 更新版本号 v1.0.0-beta.2 2026-03-16 22:44:34 +08:00
maotoumao
18f55e108d fix: 迁移时正在播放的歌曲被清空 2026-03-16 22:43:39 +08:00
猫头猫
87f6b0527c fix: 修复 traymenu 相关问题(#369) (#372)
> [!CAUTION] 
> PR 请提交到 `dev` 分支  (Please submit PR to `dev` branch)

## PR 解决的问题 (PR Summary)
> 修复 traymenu 显示的相关问题(#369)

## 影响范围 (Impact Scope)
> 托盘菜单
2026-03-16 22:28:50 +08:00
Yu
982cc3788b fix: 修复 traymenu 相关问题(#369) 2026-03-16 22:22:05 +08:00
maotoumao
e26e09a1e4 fix: 修复播放列表颜色错误(#371) 2026-03-16 22:13:46 +08:00
maotoumao
6f40362bce chore: 调整底色 2026-03-16 22:06:20 +08:00
maotoumao
9d62a91f81 chore: 更新skill 2026-03-16 21:58:29 +08:00
maotoumao
aa44794394 feat: 更新issue模板 2026-03-16 21:56:15 +08:00
maotoumao
6e4201e0d0 Merge branch 'dev' of https://github.com/maotoumao/MusicFreeDesktop into dev 2026-03-16 21:32:55 +08:00
maotoumao
f2be5fa8cf fix: 本地歌曲没有歌词(#370) 2026-03-16 21:32:13 +08:00
maotoumao
337b22c3d9 fix: 统一本地音乐支持的扩展名 2026-03-16 21:16:03 +08:00
maotoumao
23b5946829 fix: 修复允许出现多个实例的问题 2026-03-16 20:51:37 +08:00
maotoumao
35e5d2c57d update skills 2026-03-16 19:07:08 +08:00
猫头猫
2001df24bd Merge branch 'master' into dev 2026-03-14 19:47:00 +08:00
maotoumao
cd9c651485 chore: 修复macos build v1.0.0-beta.1 2026-03-14 18:24:40 +08:00
maotoumao
18bc304344 chore: 修复macos build 2026-03-14 18:19:08 +08:00
maotoumao
c8bba183b1 chore: 修复macos build 2026-03-14 18:12:34 +08:00
maotoumao
f49951af06 chore: 更新build脚本 2026-03-14 18:04:44 +08:00
maotoumao
c5c65464c6 chore: 更新build脚本 2026-03-14 17:56:55 +08:00
猫头猫
f3b526a6c1 Merge pull request #361 from maotoumao/tmp
chore: temp
2026-03-14 17:51:19 +08:00
maotoumao
1dd4070030 chore: temp 2026-03-14 17:45:57 +08:00
maotoumao
fdeba669a7 chore: 更新文档 2026-03-14 17:28:09 +08:00
maotoumao
d05eb7c75c fix: 播放队列 2026-03-14 17:16:33 +08:00