manager: fix update no response when changelog is empty (#1786)

This commit is contained in:
TinyHai
2024-06-05 01:14:40 +08:00
committed by GitHub
parent 78bf2493bf
commit 71937f5379

View File

@@ -128,7 +128,9 @@ fun UpdateCard() {
message = stringResource(id = R.string.new_version_available).format(newVersionCode),
MaterialTheme.colorScheme.outlineVariant
) {
if (changelog.isNotEmpty()) {
if (changelog.isEmpty()) {
uriHandler.openUri(newVersionUrl)
} else {
updateDialog.showConfirm(
title = title,
content = changelog,