Fix Getting Started page
This commit is contained in:
parent
92495f0256
commit
bec63e4070
|
@ -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"))));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue