Fix Getting Started page

This commit is contained in:
Reinhard Pointner 2018-06-11 17:25:09 +07:00
parent 92495f0256
commit bec63e4070
3 changed files with 9 additions and 5 deletions

View File

@ -323,7 +323,7 @@ public class Main {
started.flush();
// open Getting Started
SwingUtilities.invokeLater(GettingStartedStage::start);
SwingUtilities.invokeLater(() -> GettingStartedStage.start("show".equals(System.getProperty("application.help"))));
}
}

View File

@ -28,9 +28,13 @@ import net.filebot.ResourceManager;
public class GettingStartedStage {
public static void start() {
public static void start(boolean show) {
invokeJavaFX(() -> {
ask(); // libjfxwebkit.dylib cannot be deployed on the MAS due to deprecated dependencies
if (show) {
create().show();
} else {
ask(); // libjfxwebkit.dylib cannot be deployed on the MAS due to deprecated dependencies
}
});
}
@ -51,7 +55,7 @@ public class GettingStartedStage {
}
}
protected static GettingStartedStage create() {
private static GettingStartedStage create() {
Stage stage = new Stage();
stage.setResizable(true);

View File

@ -127,7 +127,7 @@ public class MainFrame extends JFrame {
});
}));
installAction(this.getRootPane(), getKeyStroke(VK_F1, 0), newAction("Help", evt -> GettingStartedStage.start()));
installAction(this.getRootPane(), getKeyStroke(VK_F1, 0), newAction("Help", evt -> openURI(getEmbeddedHelpURL())));
SwingEventBus.getInstance().register(this);
}