mirror of
https://github.com/mitb-archive/filebot
synced 2025-01-11 05:48:01 -05:00
* hide webview while it's loading
This commit is contained in:
parent
b3e5071a64
commit
100de60a97
@ -64,6 +64,8 @@ public class GettingStartedStage {
|
||||
webview.getEngine().getLoadWorker().stateProperty().addListener((v, o, n) -> {
|
||||
if (n == Worker.State.SUCCEEDED) {
|
||||
stage.setOpacity(1.0);
|
||||
stage.show();
|
||||
stage.toFront();
|
||||
webview.requestFocus();
|
||||
} else if (n == Worker.State.FAILED) {
|
||||
stage.close();
|
||||
@ -80,6 +82,7 @@ public class GettingStartedStage {
|
||||
public void show() {
|
||||
stage.setOpacity(0.0);
|
||||
stage.show();
|
||||
stage.toBack();
|
||||
}
|
||||
|
||||
protected void setBackground(WebEngine engine, int color) {
|
||||
|
Loading…
Reference in New Issue
Block a user