提供代码质量

This commit is contained in:
zsyg
2025-07-02 09:15:43 +08:00
committed by GitHub
parent 074e55fbbc
commit 1539c665f0
3 changed files with 23 additions and 6 deletions

View File

@@ -347,8 +347,14 @@ namespace AppStore
public void UpdateDisplay()
{
nameLabel.Text = AppName;
iconBox.Image = AppIcon;
if (nameLabel != null)
{
nameLabel.Text = AppName;
}
if (iconBox != null && AppIcon != null)
{
iconBox.Image = AppIcon;
}
}
private void DownloadBtn_Click(object sender, EventArgs e)