fixed problems with "C" hotkey in single gate mode

This commit is contained in:
hneemann 2017-07-23 20:16:20 +02:00
parent fde688d3cb
commit 08fc96c29f

View File

@ -273,12 +273,7 @@ public final class Main extends JFrame implements ClosingWindowListener.ConfirmS
if (cl.size() == 1) {
ObservableValue clkVal = cl.get(0).getClockOutput();
clkVal.setBool(!clkVal.getBool());
try {
model.doStep();
circuitComponent.repaintNeeded();
} catch (NodeException | RuntimeException e) {
showErrorAndStopModel(Lang.get("err_remoteExecution"), e);
}
circuitComponent.modelHasChanged();
}
}
}