Skip to content

Commit

Permalink
release:v3.0.21-alpha.21
Browse files Browse the repository at this point in the history
  • Loading branch information
GiantappMan committed Jul 14, 2024
1 parent 516f0b9 commit da7920b
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 14 deletions.
14 changes: 7 additions & 7 deletions docs/2.更新记录.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,22 +57,21 @@

---

## v3.0.20-alpha.20 发布日期:待定
## v3.1.0-beta.0 发布日期:待定

### 功能

- 社区
- [ ] 投稿
- [ ] 会员购买
- [ ] 支持 本地html 壁纸
- [ ] 支持 在线网址 壁纸
- [ ] 播放视频界面显示loading
- [ ] 在线本地预览壁纸(会员)
- [ ] 本地列表中显示下载中进度
- [ ] 在桌面预览社区壁纸(会员)
- [ ] 本地列表中显示下载中进度
- [ ] 支持 本地html 壁纸
- [ ] 支持 在线网址 壁纸
- [ ] 播放视频界面显示loading
- [ ] 社区详情页打开会偶尔白色主题闪烁
- [ ] 社区详情页打开会偶尔白色主题闪烁
- [ ] 壁纸切换增加loading状态,防止快速操作产生bug

### 修复

Expand All @@ -81,14 +80,15 @@

---

## v3.0.21-alpha.21 发布日期:待定
## v3.0.21-alpha.21 发布日期:2024.7.15

### 功能

- 社区
- [x] 邮箱注册
- [x] 更换邮箱
- [x] 找回密码
- [x] 会员购买
- [x] 增加打开本地日志目录按钮(方便查找日志,定位bug)
- [x] 巨应3社区访问优化(更快,开销也更大了)
- [x] 更新mpv播放器到 mpv-x86_64-v3-20240707-git-00f43e0.7z
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
<Import Project="$(WapProjPath)\Microsoft.DesktopBridge.targets" />
<ItemGroup>
<!--<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.26100.1" PrivateAssets="all" />-->
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.26100.1" PrivateAssets="all" />
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.22621.3233" PrivateAssets="all" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Client\Client.csproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<Identity
Name="24765mscoder.3"
Publisher="CN=49BC8659-1B4C-4520-B1FB-ED98CFA366C4"
Version="3.0.20.0" />
Version="3.0.21.0" />

<Properties>
<DisplayName>ms-resource:Resources/PackageDisplayName</DisplayName>
Expand Down
17 changes: 13 additions & 4 deletions src/giantapp-wallpaper-client/WallpaperCore/Libs/DesktopHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,20 @@ public static bool SendHandleToDesktopBottom(IntPtr handler, Rectangle? bounds)
//先放到屏幕外,防止产生残影
_ = PInvoke.SetWindowPos(hwnd, HWND.Null, -10000, 0, 0, 0, Windows.Win32.UI.WindowsAndMessaging.SET_WINDOW_POS_FLAGS.SWP_NOACTIVATE);

var res = PInvoke.SetParent(hwnd, worker);
if (res == HWND.Null)
var res = HWND.Null;
int attempts = 0;
const int maxAttempts = 50; // 尝试次数
while (res.IsNull && attempts < maxAttempts)
{
//获取错误
//var test = PInvoke.GetLastError();
res = PInvoke.SetParent(hwnd, worker);
if (res.IsNull)
{
// 获取错误
// var test = PInvoke.GetLastError();
System.Threading.Thread.Sleep(100); // 等待100ms后重试
}
attempts++;
_logger.Info($"SendHandleToDesktopBottom {handler} worker:{worker} SetParentRes:{res} attempts:{attempts}");
}

////检查parent是否生效
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,10 @@ internal override async Task Play(Wallpaper? wallpaper)
{
await _playerApi.LaunchAsync(playlistPath);
var bounds = WallpaperApi.GetScreen(screenIndex)?.Bounds;
DeskTopHelper.SendHandleToDesktopBottom(_playerApi.MainHandle, bounds);
await Task.Run(() =>
{
DeskTopHelper.SendHandleToDesktopBottom(_playerApi.MainHandle, bounds);
});
}
else
{
Expand Down

0 comments on commit da7920b

Please sign in to comment.