mirror of
https://github.com/hneemann/Digital.git
synced 2025-08-04 02:08:00 -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)
|
||||
builder.setFileToOpen(file);
|
||||
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) {
|
||||
LOGGER.debug("set empty circuit to start tutorial");
|
||||
builder.setCircuit(new Circuit());
|
||||
|
Loading…
x
Reference in New Issue
Block a user