Skip to content

Commit

Permalink
View session list only shows file name to close 75
Browse files Browse the repository at this point in the history
  • Loading branch information
phrack committed Aug 15, 2015
1 parent 9153974 commit 3e1eb69
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ public void init() {

sessionListView.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<File>() {
public void changed(ObservableValue<? extends File> ov, File oldFile, File newFile) {
Optional<SessionRecorder> session = SessionIO.loadSession(newFile);
Optional<SessionRecorder> session = SessionIO.loadSession(
new File(System.getProperty("shootoff.home") + File.separator +
"sessions" + File.separator + newFile.getName()));

if (session.isPresent()) {
refreshFromSlider = false;
Expand Down Expand Up @@ -159,7 +161,7 @@ private List<File> findSessions () {

if (sessionFiles != null) {
for (File file : sessionFiles) {
sessions.add(file);
sessions.add(new File(file.getName()));
}
} else {
logger.error("Failed to find session files because a list of files could not be retrieved");
Expand Down

0 comments on commit 3e1eb69

Please sign in to comment.