mirror of
https://github.com/2dust/v2rayN.git
synced 2026-07-26 09:52:05 +03:00
8147b3972320b1c6ba13a1fe5450f3312e67baa7
* fix: 在窗口初始化前设置保存的尺寸,消除启动时偏右下偏移 WindowStartupLocation="CenterScreen"(来自 XAML)能正确包含 chrome 居中窗口, 但只能使用生效时的 Width/Height。旧代码在 OnLoaded 中设置保存的尺寸为时已晚 (CenterScreen 已应用),随后又用不含 chrome 的手工计算覆盖 Position, 导致窗口每次启动偏右下。 修复方式:在 Initialized 事件中设置保存的 Width/Height。 Avalonia 中 Initialized 在 Show() 过程中触发,早于 WindowStartupLocation 生效, 因此 CenterScreen 能用正确的保存尺寸居中。 同时移除 OnLoaded 中重复的 Width/Height 设置(Initialized 中已设置)。 * Update WindowBase.cs --------- Co-authored-by: 2dust <31833384+2dust@users.noreply.github.com>
Remove extra .gitignore file and move .gitattributes to the root folder for consistent storage of .git-related files. (#6545)
Languages
C#
91.7%
Shell
8.3%