瀏覽代碼

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

Open-KFC 1 年之前
父節點
當前提交
1c0bd6d02a
共有 1 個文件被更改,包括 1 次插入 和 0 次删除
  1. 1 0
      Plain Craft Launcher 2/Pages/PageSetup/PageSetupUI.xaml.vb

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

@@ -281,6 +281,7 @@
             File.Delete(Path & "PCL\Logo.png")
             CopyFile(FileName, Path & "PCL\Logo.png")
             '设置当前显示
+            FrmMain.ImageTitleLogo.Source = Nothing '防止因为 Source 属性前后的值相同而不更新 (#5628)
             FrmMain.ImageTitleLogo.Source = Path & "PCL\Logo.png"
         Catch ex As Exception
             If ex.Message.Contains("参数无效") Then