From 58fc94e9d061d4e92f9ce8bcab83844ecf7ad90a 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); });