From 899e0e65a584594f59f7d7c49b430c5daca8d768 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Thu, 23 Nov 2017 21:11:03 -0800 Subject: [PATCH] Make definition file addition / removal trigger the change flag. --- fx/src/main/java/org/nwapw/abacus/fx/AbacusController.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fx/src/main/java/org/nwapw/abacus/fx/AbacusController.java b/fx/src/main/java/org/nwapw/abacus/fx/AbacusController.java index 9dd75a0..a208466 100644 --- a/fx/src/main/java/org/nwapw/abacus/fx/AbacusController.java +++ b/fx/src/main/java/org/nwapw/abacus/fx/AbacusController.java @@ -381,12 +381,14 @@ public class AbacusController implements PluginListener { if(selectedFile == null) return; String absolutePath = selectedFile.getAbsolutePath(); if(!definitionFiles.contains(absolutePath)) definitionFiles.add(absolutePath); + changesMade = true; } @FXML public void performRemoveDefinitionFile(){ String selectedItem = definitionFilesView.getSelectionModel().getSelectedItem(); if(selectedItem != null) definitionFiles.remove(selectedItem); + changesMade = true; } @Override