mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-08-03 11:26:38 -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 {
|
||||
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) {
|
||||
URI target = resolveLink(hyperlink);
|
||||
if (target != null) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user