Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
wylliec committed Feb 28, 2016
1 parent 9eb9b14 commit f5a35fc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
8 changes: 5 additions & 3 deletions src/keymix/Controller.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public class Controller {
List<File> files = fileChooser.showOpenMultipleDialog(message.getScene().getWindow());
if(files != null) {
importedSounds.addAll(files);
message.setText(files.size() + " files were added.");
message.setText(files.size() + " file(s) were added.");
} else {

}
Expand All @@ -74,8 +74,10 @@ public class Controller {

Optional<File> result = dialog.showAndWait();
result.ifPresent(file -> {
importedSounds.remove(file);
message.setText(file.getName() + " was removed.");
if (!file.toString().equals(DEFAULT_OPTION)) {
importedSounds.remove(file);
message.setText(file.getName() + " was removed.");
}
});

event.consume();
Expand Down
1 change: 0 additions & 1 deletion src/keymix/Sample.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import javafx.scene.media.AudioClip;

import java.io.IOException;
import java.io.ObjectStreamException;
import java.io.Serializable;

/**
Expand Down
2 changes: 0 additions & 2 deletions src/keymix/app.fxml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>

<?import java.lang.*?>
<?import javafx.geometry.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<?import javafx.scene.text.*?>
Expand Down

0 comments on commit f5a35fc

Please sign in to comment.