mirror of
https://github.com/hneemann/Digital.git
synced 2025-08-04 10:17:48 -04:00
If a file name is passed in, the tutorial mode is skipped.
This commit is contained in:
parent
a9a36571aa
commit
1cb8df1a03
@ -2121,7 +2121,7 @@ public final class Main extends JFrame implements ClosingWindowListener.ConfirmS
|
|||||||
if (file != null)
|
if (file != null)
|
||||||
builder.setFileToOpen(file);
|
builder.setFileToOpen(file);
|
||||||
SwingUtilities.invokeLater(() -> {
|
SwingUtilities.invokeLater(() -> {
|
||||||
final boolean tutorial = Settings.getInstance().getAttributes().get(Keys.SETTINGS_SHOW_TUTORIAL);
|
final boolean tutorial = (builder.fileToOpen == null) && Settings.getInstance().getAttributes().get(Keys.SETTINGS_SHOW_TUTORIAL);
|
||||||
if (tutorial) {
|
if (tutorial) {
|
||||||
LOGGER.debug("set empty circuit to start tutorial");
|
LOGGER.debug("set empty circuit to start tutorial");
|
||||||
builder.setCircuit(new Circuit());
|
builder.setCircuit(new Circuit());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user