mirror of
https://github.com/mitb-archive/filebot
synced 2025-03-10 06:20:27 -04:00
Fix Getting Started page
This commit is contained in:
parent
92495f0256
commit
bec63e4070
@ -323,7 +323,7 @@ public class Main {
|
|||||||
started.flush();
|
started.flush();
|
||||||
|
|
||||||
// open Getting Started
|
// 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 class GettingStartedStage {
|
||||||
|
|
||||||
public static void start() {
|
public static void start(boolean show) {
|
||||||
invokeJavaFX(() -> {
|
invokeJavaFX(() -> {
|
||||||
|
if (show) {
|
||||||
|
create().show();
|
||||||
|
} else {
|
||||||
ask(); // libjfxwebkit.dylib cannot be deployed on the MAS due to deprecated dependencies
|
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 stage = new Stage();
|
||||||
stage.setResizable(true);
|
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);
|
SwingEventBus.getInstance().register(this);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user