Explorar o código

fix(ImageTitleLogo): 保证在重新设置标题栏图片时得到刷新

Open-KFC hai 1 ano
pai
achega
1c0bd6d02a

+ 1 - 0
Plain Craft Launcher 2/Pages/PageSetup/PageSetupUI.xaml.vb

@@ -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