发现更新弹窗添加取消按钮 (#3282)

This commit is contained in:
Zkitefly 2024-10-09 01:03:56 +08:00 committed by GitHub
parent 74926704bd
commit 7937f8ddf5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -237,10 +237,10 @@ public final class MainPage extends StackPane implements DecoratorPage {
doAnimation(show);
if (show && getLatestVersion() != null && !Objects.equals(config().getPromptedVersion(), getLatestVersion().getVersion())) {
Controllers.dialog("", i18n("update.bubble.title", getLatestVersion().getVersion()), MessageDialogPane.MessageType.INFO, () -> {
Controllers.confirm("", i18n("update.bubble.title", getLatestVersion().getVersion()), MessageDialogPane.MessageType.INFO, () -> {
config().setPromptedVersion(getLatestVersion().getVersion());
onUpgrade();
});
}, null);
}
}