mirror of
https://github.com/DanilaFe/abacus
synced 2024-12-22 07:20:09 -08:00
Make definition file addition / removal trigger the change flag.
This commit is contained in:
parent
b4b64ac963
commit
899e0e65a5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user