1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-02 08:25:02 -04:00

* hide webview while it's loading

This commit is contained in:
Reinhard Pointner 2015-06-01 21:33:22 +00:00
parent aa26342eb8
commit b3e5071a64

View File

@ -63,7 +63,10 @@ public class GettingStartedStage {
webview.getEngine().getLoadWorker().stateProperty().addListener((v, o, n) -> {
if (n == Worker.State.SUCCEEDED) {
stage.setOpacity(1.0);
webview.requestFocus();
} else if (n == Worker.State.FAILED) {
stage.close();
}
});
@ -75,6 +78,7 @@ public class GettingStartedStage {
}
public void show() {
stage.setOpacity(0.0);
stage.show();
}