Skip to content

Commit 16d4589

Browse files
authored
点击主页“下载”按钮时保留先前打开页面 (#6775)
1 parent e0dacd0 commit 16d4589

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,7 @@ protected Skin(RootPage control) {
147147
AdvancedListItem downloadItem = new AdvancedListItem();
148148
downloadItem.setLeftIcon(SVG.DOWNLOAD);
149149
downloadItem.setTitle(i18n("download"));
150-
downloadItem.setOnAction(e -> {
151-
Controllers.getDownloadPage().showGameDownloads();
152-
Controllers.navigate(Controllers.getDownloadPage());
153-
});
150+
downloadItem.setOnAction(e -> Controllers.navigate(Controllers.getDownloadPage()));
154151
if (AnimationUtils.isAnimationEnabled()) {
155152
FXUtils.prepareOnMouseEnter(downloadItem, Controllers::prepareDownloadPage);
156153
}

0 commit comments

Comments
 (0)