This commit is contained in:
parent
f59bf26d54
commit
733cdc6da4
|
@ -242,7 +242,8 @@ public class SettingsTab extends Tab implements TabSelectionListener {
|
||||||
|
|
||||||
private void refreshChaturbateTabs() {
|
private void refreshChaturbateTabs() {
|
||||||
getTabPane().getTabs().forEach(tab -> {
|
getTabPane().getTabs().forEach(tab -> {
|
||||||
if (tab.getContent() instanceof ThumbOverviewTab overviewTab) {
|
if (tab.getContent() instanceof ThumbOverviewTab) {
|
||||||
|
ThumbOverviewTab overviewTab = (ThumbOverviewTab) tab.getContent(); {
|
||||||
if (overviewTab.updateService != null) {
|
if (overviewTab.updateService != null) {
|
||||||
overviewTab.updateService.cancel(); // Stop current update
|
overviewTab.updateService.cancel(); // Stop current update
|
||||||
overviewTab.updateService.reset(); // Reset service
|
overviewTab.updateService.reset(); // Reset service
|
||||||
|
|
|
@ -773,6 +773,9 @@ public class ThumbOverviewTab extends Tab implements TabSelectionListener {
|
||||||
popoverTreeList.setRecorder(recorder);
|
popoverTreeList.setRecorder(recorder);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public PaginatedScheduledService getUpdateService() {
|
||||||
|
return updateService;
|
||||||
|
}
|
||||||
@Override
|
@Override
|
||||||
public void selected() {
|
public void selected() {
|
||||||
grid.getChildren().removeAll(noResultsFound, errorLabel);
|
grid.getChildren().removeAll(noResultsFound, errorLabel);
|
||||||
|
|
Loading…
Reference in New Issue