Skip to content
Snippets Groups Projects
Commit f7386da5 authored by helene ortiz's avatar helene ortiz
Browse files

Prompt in command line was not hidden when another client starts a

command.
parent 4bead839
No related branches found
No related tags found
No related merge requests found
4.0.60 dd/08/2020
------
* Prompt in command line was not hidden when another client starts a command.
4.0.59 21/08/2020
------
* Add a log process for all token events on main computer.
......
......@@ -92,14 +92,20 @@ public abstract class CommandLineShell implements IMagnifyListener {
}
public void init() {
synchronisePrompt();
Magnifier.getInstance().addContainerMagnifyListener(this);
}
public void synchronisePrompt() {
if (state.isCommandLine() && !isSimulationMode) {
if (CommandLine.getInstance(serverId).isPaused() || CommandLine.getInstance(serverId).isStarted()) {
// Wait for a sync event coming from the server
setSynchronised(false);
}
}
Magnifier.getInstance().addContainerMagnifyListener(this);
}
public final void setState(CommandLineState state) {
this.state = state;
......
......@@ -104,6 +104,8 @@ public class CommandLineDirectExecutionState extends CommandLineState implements
commandLineShell.displayLog(event);
}
}
// Since multiple clients can interact with the instrument, prompt must be updated
commandLineShell.synchronisePrompt();
}
public boolean isSynchronised() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment