Compare commits

...

2 Commits

Author SHA1 Message Date
J62 674a84dcb0 d2 2025-03-15 16:25:45 -07:00
J62 733cdc6da4 d2 2025-03-15 16:24:48 -07:00
2 changed files with 8 additions and 5 deletions

View File

@ -242,11 +242,11 @@ 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) {
if (overviewTab.updateService != null) { ThumbOverviewTab overviewTab = (ThumbOverviewTab) tab.getContent();
overviewTab.updateService.cancel(); // Stop current update if (overviewTab.getUpdateService() != null) {
overviewTab.updateService.reset(); // Reset service overviewTab.getUpdateService().reset();
overviewTab.updateService.restart(); // Restart service with new settings overviewTab.getUpdateService().restart();
} }
} }
}); });

View File

@ -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);