在HMCL显示changelog时自动定位该更新内容 (#1850)

* 在HMCL显示changelog时自动定位该更新内容

* 尝试修复错误

* updata

* fix
This commit is contained in:
zkitefly
2022-11-23 14:07:13 +08:00
committed by GitHub
parent 1253272626
commit 024c90d688
2 changed files with 2 additions and 2 deletions

View File

@@ -41,7 +41,7 @@ public class UpgradeDialog extends JFXDialogLayout {
}
{
String url = CHANGELOG_URL + remoteVersion.getChannel().channelName + ".html";
String url = CHANGELOG_URL + remoteVersion.getChannel().channelName + ".html#nowchange";
try {
WebView webView = new WebView();
webView.getEngine().setUserDataDirectory(Metadata.HMCL_DIRECTORY.toFile());

View File

@@ -94,7 +94,7 @@ public final class UpdateChecker {
private static boolean isDevelopmentVersion(String version) {
return version.contains("@") || // eg. @develop@
version.contains("SNAPSHOT"); // eg. 3.1.SNAPSHOT
version.contains("SNAPSHOT"); // eg. 3.5.SNAPSHOT
}
public static void requestCheckUpdate(UpdateChannel channel) {