修复托盘图标和窗口问题 - #3
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
修复内容
托盘图标修复
std::env::current_exe获取正确的可执行文件路径)image-pngfeature 以支持Image::from_path窗口配置修复
测试用例
托盘图标显示
窗口大小
配置面板
变更文件
src-tauri/Cargo.toml- 添加 image-png featuresrc-tauri/src/main.rs- 修复图标路径解析src-tauri/src/tray.rs- 修复图标加载和类型src-tauri/tauri.conf.json- 修正窗口配置字段名