Merge pull request #6321 from Open-KFC/title-bar-pic

fix(ImageTitleLogo): 保证在重新设置标题栏图片时得到刷新
This commit is contained in:
龙腾猫跃
2025-05-28 17:02:42 +08:00
committed by GitHub
@@ -281,6 +281,7 @@
File.Delete(Path & "PCL\Logo.png") File.Delete(Path & "PCL\Logo.png")
CopyFile(FileName, Path & "PCL\Logo.png") CopyFile(FileName, Path & "PCL\Logo.png")
'设置当前显示 '设置当前显示
FrmMain.ImageTitleLogo.Source = Nothing '防止因为 Source 属性前后的值相同而不更新 (#5628)
FrmMain.ImageTitleLogo.Source = Path & "PCL\Logo.png" FrmMain.ImageTitleLogo.Source = Path & "PCL\Logo.png"
Catch ex As Exception Catch ex As Exception
If ex.Message.Contains("参数无效") Then If ex.Message.Contains("参数无效") Then