Commit Graph

27 Commits

Author SHA1 Message Date
BTMuli
6e40784682 检测本体是否启动 2026-02-22 18:03:49 +08:00
BTMuli
c1ce2def26 ♻️ msix环境下将dll移动到文档目录
#206
2026-01-18 17:30:04 +08:00
BTMuli
e3f3a038f4 🎨 code fmt 2026-01-16 19:39:27 +08:00
BTMuli
7b3596d226 ♻️ 采用invoke而非command启动游戏 2026-01-03 13:48:08 +08:00
BTMuli
cc3655a700 🌱 监听&获取文本缩放
#192
2025-12-29 21:15:52 +08:00
BTMuli
dfc60d8645 🐛 修正管理员模式判断逻辑,改为检测进程 2025-12-27 15:11:28 +08:00
Copilot
7544fa1489 支持托盘 (#181)
* Initial plan

* Add system tray icon feature with show/quit menu

Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com>

* Apply Rust code formatting

Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com>

* Address code review feedback: improve documentation and reduce duplication

Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com>

* Make tray behavior configurable - add closeToTray setting

- Add closeToTray setting in app store (default: false)
- Add UI toggle in PageConfig.vue for "关闭到托盘" setting
- Modify window close handler to emit event instead of always hiding
- Add hide_main_window and quit_app commands in backend
- Frontend listens for close event and respects user preference
- When closeToTray is enabled, window minimizes to tray on close
- When disabled, application quits on close (original behavior)

Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com>

* Remove duplicate SUB_WINDOW_LABELS constant - use shared constant from lib.rs

Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com>

* Fix tray icon issues: remove duplicate tray, add icon loading, close sub-windows on hide

1. Remove duplicate tray icon: Removed trayIcon config from tauri.conf.json (was creating 2 trays)
2. Add proper icon loading: Use image crate to decode PNG and create RGBA icon data
3. Close sub-windows when hiding: Modified hide_main_window to close all sub-windows before hiding
4. Sync with master branch: Merged latest commit c8fe03c

Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com>

* Address code review: remove anyhow, add separator, improve comments

1. Remove anyhow dependency - Use Tauri's InvalidIcon error instead
2. Add menu separator between "显示窗口" and "退出应用"
3. Add comment explaining image crate necessity (Tauri Image only accepts raw RGBA)
4. Keep HTTPS URLs with note about SSH preference for local development
5. Image crate remains necessary as Tauri doesn't provide PNG decoding

Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com>

* Revert to SSH URLs for plugin dependencies as requested

Changed all tauri-plugin git URLs from HTTPS to SSH format.
Project CI has SSH configuration, so SSH is the preferred method.

Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com>

* Use storeToRefs for closeToTray property

Changed closeToTray access to use storeToRefs in both App.vue and PageConfig.vue
for better reactivity and consistency with other store properties.

Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com>
2025-12-14 14:30:15 +08:00
BTMuli
d18b6bb898 ♻️ 代码重构提取 2025-12-03 20:30:28 +08:00
BTMuli
0f107abde6 🐛 重构管理员权限重启逻辑 2025-12-03 19:58:03 +08:00
BTMuli
46cf40734f 🐛 修复成就数据读取异常 2025-12-03 18:53:35 +08:00
BTMuli
90d71be17e 🐛 修复mac编译异常 2025-12-02 22:39:04 +08:00
BTMuli
cde9149bbd 🐛 修复mac编译异常 2025-12-02 21:49:59 +08:00
BTMuli
b267599039 🐛 修复重启异常 2025-12-02 11:37:37 +08:00
BTMuli
51ce0217f0 💩 release模式下重启不一定成功 2025-12-02 02:03:25 +08:00
BTMuli
fac394be8b 🚨 修复内存分配和句柄关闭错误 2025-12-02 00:37:00 +08:00
BTMuli
a12a12e786 🚨 修复部分异常 2025-12-02 00:37:00 +08:00
BTMuli
38f3301664 完成成就导入 2025-12-02 00:37:00 +08:00
BTMuli
14c47369e7 🌱 尝试检测管理员&以管理员模式重启 2025-12-02 00:37:00 +08:00
BTMuli
27c79aec62 ⬆️ 更新依赖 2025-05-05 21:45:44 +08:00
目棃
f92684c7b3 ⬆️ 更新依赖 2025-03-21 10:45:35 +08:00
目棃
5bf2521938 ️ 不允许低于 UIGF v2.3 版本的数据导入 2024-07-18 18:04:12 +08:00
目棃
012efb03ea ♻️ 重构米社窗口创建,现在默认只创建一个窗口了 2024-07-06 00:28:13 +08:00
目棃
f4de7552e1 ♻️ 感觉差不多了,剩下的就靠测试了 #92 2024-07-03 22:33:37 +08:00
目棃
8a2c7d13c6 ♻️ 姑且没登录的功能都给试了下 2024-07-03 17:49:15 +08:00
目棃
367307029b ♻️ 姑且能跑 dev,尚需调试功能 2024-07-02 23:08:54 +08:00
目棃
1214501691 ♻️ 初步更改,cargo build 2024-07-02 19:29:53 +08:00
目棃
91fac5f2e4 ♻️ rs 代码重构 2024-02-04 00:11:53 +08:00