From 77db9181782059e67fa450a22c638eb03d55fbb6 Mon Sep 17 00:00:00 2001 From: DismissedLight <1686188646@qq.com> Date: Sat, 5 Nov 2022 21:35:57 +0800 Subject: [PATCH] update bug report template --- .github/ISSUE_TEMPLATE/bug_report.yml | 4 ++-- src/Snap.Hutao/Snap.Hutao/Core/Windowing/ExtendedWindow.cs | 4 ++++ src/Snap.Hutao/Snap.Hutao/Package.appxmanifest | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 82fb10fb29..930f16dc8f 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -48,9 +48,9 @@ body: - type: textarea id: logs attributes: - label: 相关的崩溃日志 位于 `%HOMEPATH%/Documents/Hutao/Log.db` + label: 相关的崩溃日志 description: | - 在资源管理器中直接输入`%HOMEPATH%/Documents/Hutao`即可进入文件夹 + 在资源管理器中直接输入`%userprofile%/Documents/Hutao`即可进入文件夹 如果应用程序崩溃了,请将`log.db` 文件上传,文件包含了敏感信息,谨慎上传 如果这个表单是关于导入祈愿记录的问题,请包含你导入的`Json`文件 **务必不要上传`user.db`文件,该文件包含你的帐号敏感信息** diff --git a/src/Snap.Hutao/Snap.Hutao/Core/Windowing/ExtendedWindow.cs b/src/Snap.Hutao/Snap.Hutao/Core/Windowing/ExtendedWindow.cs index 497d1018bd..abb8e1212d 100644 --- a/src/Snap.Hutao/Snap.Hutao/Core/Windowing/ExtendedWindow.cs +++ b/src/Snap.Hutao/Snap.Hutao/Core/Windowing/ExtendedWindow.cs @@ -160,5 +160,9 @@ private void UpdateDragRectangles(AppWindowTitleBar appTitleBar) // 48 is the navigation button leftInset RectInt32 dragRect = new RectInt32(48, 0, (int)titleBar.ActualWidth, (int)titleBar.ActualHeight).Scale(scale); appTitleBar.SetDragRectangles(dragRect.Enumerate().ToArray()); + + // workaround for https://github.com/microsoft/WindowsAppSDK/issues/2976 + // add this to set the same window size after every time drag rectangles are set + appWindow.ResizeClient(appWindow.ClientSize); } } \ No newline at end of file diff --git a/src/Snap.Hutao/Snap.Hutao/Package.appxmanifest b/src/Snap.Hutao/Snap.Hutao/Package.appxmanifest index befe664ecc..7eabb3d4f9 100644 --- a/src/Snap.Hutao/Snap.Hutao/Package.appxmanifest +++ b/src/Snap.Hutao/Snap.Hutao/Package.appxmanifest @@ -10,7 +10,7 @@ + Version="1.1.21.0" /> 胡桃