From a5a1f3a96a5985d9d067794fa9ca3760aa259cd0 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Sat, 5 Aug 2017 14:36:42 -0700 Subject: [PATCH] Fix clearing input field. --- src/main/java/org/nwapw/abacus/fx/AbacusController.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/nwapw/abacus/fx/AbacusController.java b/src/main/java/org/nwapw/abacus/fx/AbacusController.java index 3ea5656..a3ebe22 100644 --- a/src/main/java/org/nwapw/abacus/fx/AbacusController.java +++ b/src/main/java/org/nwapw/abacus/fx/AbacusController.java @@ -139,6 +139,7 @@ public class AbacusController implements PluginListener { String calculation = attemptCalculation(); Platform.runLater(() -> { outputText.setText(calculation); + inputField.setText(""); inputButton.setDisable(false); stopButton.setDisable(true); });