mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-08-03 19:36:53 -04:00
update
This commit is contained in:
parent
08d2de6e4c
commit
cc498495a4
@ -191,11 +191,13 @@ public final class HTMLRenderer {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Task<Image> task = FXUtils.getRemoteImageTask(uri.toString(), width, height, true, true);
|
|
||||||
task.start();
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
ImageView imageView = new ImageView(task.getResult());
|
Image image = FXUtils.getRemoteImageTask(uri.toString(), width, height, true, true)
|
||||||
|
.run();
|
||||||
|
if (image == null)
|
||||||
|
throw new AssertionError("Image loading task returned null");
|
||||||
|
|
||||||
|
ImageView imageView = new ImageView(image);
|
||||||
if (hyperlink != null) {
|
if (hyperlink != null) {
|
||||||
URI target = resolveLink(hyperlink);
|
URI target = resolveLink(hyperlink);
|
||||||
if (target != null) {
|
if (target != null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user