Skip to content

feat(window): Linux 默认开启应用内窗口按钮 - #8

Merged
Kvxin merged 1 commit into
mainfrom
devin/1794899813-default-app-window-controls
Nov 17, 2026
Merged

Kvxin merged 1 commit into
mainfrom
devin/1794899813-default-app-window-controls

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Linux 上“使用应用内窗口按钮”改为默认开启。

  • SavedPreferences 的默认值改为 use_app_window_controls: true(impl Default + #[serde(default = "default_use_app_window_controls")])。
  • 没有 window-preferences.json、文件缺少该字段或文件读取失败时,都按开启处理;之前手动关闭过(文件里是 false)的用户保持关闭。
  • Windows / macOS 行为不变。README 已同步更新。

验证

  • cargo fmt --check、cargo clippy -- -D warnings
  • cargo test --lib window_preferences(单测已更新:Linux 默认是 true,{} 反序列化为 true,显式 false 仍然生效)

Link to Devin session: https://app.devin.ai/sessions/76046a8ac89e48d1bf29508225ffc6d5
Open in Devin Desktop: https://app.devin.ai/desktop/session/76046a8ac89e48d1bf29508225ffc6d5?variant=devin
Requested by: @Kvxin


🟢 Devin Review found nothing to fix · View findings

Devin Review

Co-Authored-By: Epoch _Op <3253261317@qq.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@Kvxin
Kvxin merged commit 515efa9 into main Nov 17, 2026
4 of 5 checks passed

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant