fixed refreshing bug
* fixed refreshing bug, like and dislike are working again as well as loading the cache after you saved the data for the first time
This commit is contained in:
@ -493,15 +493,16 @@ public class MainWindowController {
|
||||
@Override
|
||||
public void changed(ObservableValue<?> observable, Object oldVal, Object newVal) {
|
||||
indexTable = filmsTreeTable.getSelectionModel().getSelectedIndex(); // get selected item
|
||||
indexList = filmsList.indexOf(filmsTreeTable.getSelectionModel().getSelectedItem().getValue());
|
||||
last = indexTable - 1;
|
||||
next = indexTable + 1;
|
||||
title = columnTitle.getCellData(indexTable); // get name of selected item
|
||||
streamUrl = columnStreamUrl.getCellData(indexTable); // get file path of selected item
|
||||
|
||||
System.out.println("index table: " + indexTable);
|
||||
System.out.println("index list: " + indexList);
|
||||
System.out.println(title);
|
||||
|
||||
for (FilmTabelDataType helpData : filmsList) {
|
||||
if (helpData.getStreamUrl().equals(streamUrl)) {
|
||||
indexList = filmsList.indexOf(helpData);
|
||||
}
|
||||
}
|
||||
|
||||
if (filmsList.get(indexList).getCached()) {
|
||||
LOGGER.info("loading from cache: " + title);
|
||||
@ -1072,6 +1073,10 @@ public class MainWindowController {
|
||||
this.bundle = bundle;
|
||||
}
|
||||
|
||||
public TreeTableView<FilmTabelDataType> getFilmsTreeTable() {
|
||||
return filmsTreeTable;
|
||||
}
|
||||
|
||||
public TextFlow getTextFlow() {
|
||||
return textFlow;
|
||||
}
|
||||
|
Reference in New Issue
Block a user