Skip to content

Commit 66de462

Browse files
committed
Update CheckUpdatePage.xaml.cs
1 parent c8adc2b commit 66de462

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

dev/DevWinUI.Gallery/Views/Pages/Common/CheckUpdatePage.xaml.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,16 @@ private async void Button_Click(object sender, Microsoft.UI.Xaml.RoutedEventArgs
4343
txtIsPreRelease.Text = $"Is PreRelease: {ver.PreRelease.IsPreRelease}";
4444
txtTagName.Text = $"Tag Name: {ver.PreRelease.TagName}";
4545
}
46+
else
47+
{
48+
listView.Items.Clear();
49+
var noUpdate = "There is no new version available.";
50+
txtChangelog.Text = noUpdate;
51+
txtReleaseUrl.Text = noUpdate;
52+
txtCreatedAt.Text = noUpdate;
53+
txtPublishedAt.Text = noUpdate;
54+
txtIsPreRelease.Text = noUpdate;
55+
txtTagName.Text = noUpdate;
56+
}
4657
}
4758
}

0 commit comments

Comments
 (0)