Skip to content

Commit bfdcc35

Browse files
committed
[release/3.6] 不再主动弹出升级提示
1 parent f03a4ff commit bfdcc35

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

HMCL/src/main/java/org/jackhuang/hmcl/ui/main/MainPage.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
import org.jackhuang.hmcl.ui.animation.AnimationUtils;
5454
import org.jackhuang.hmcl.ui.animation.ContainerAnimations;
5555
import org.jackhuang.hmcl.ui.animation.TransitionPane;
56-
import org.jackhuang.hmcl.ui.construct.MessageDialogPane;
5756
import org.jackhuang.hmcl.ui.construct.PopupMenu;
5857
import org.jackhuang.hmcl.ui.construct.TwoLineListItem;
5958
import org.jackhuang.hmcl.ui.decorator.DecoratorPage;
@@ -289,16 +288,6 @@ public final class MainPage extends StackPane implements DecoratorPage {
289288

290289
private void showUpdate(boolean show) {
291290
doAnimation(show);
292-
293-
if (show && getLatestVersion() != null && !Objects.equals(config().getPromptedVersion(), getLatestVersion().getVersion())) {
294-
Controllers.dialog(new MessageDialogPane.Builder("", i18n("update.bubble.title", getLatestVersion().getVersion()), MessageDialogPane.MessageType.INFO)
295-
.addAction(i18n("button.view"), () -> {
296-
config().setPromptedVersion(getLatestVersion().getVersion());
297-
onUpgrade();
298-
})
299-
.addCancel(null)
300-
.build());
301-
}
302291
}
303292

304293
private void doAnimation(boolean show) {

0 commit comments

Comments
 (0)