Compare commits
2 Commits
f59bf26d54
...
674a84dcb0
Author | SHA1 | Date |
---|---|---|
|
674a84dcb0 | |
|
733cdc6da4 |
|
@ -242,11 +242,11 @@ public class SettingsTab extends Tab implements TabSelectionListener {
|
|||
|
||||
private void refreshChaturbateTabs() {
|
||||
getTabPane().getTabs().forEach(tab -> {
|
||||
if (tab.getContent() instanceof ThumbOverviewTab overviewTab) {
|
||||
if (overviewTab.updateService != null) {
|
||||
overviewTab.updateService.cancel(); // Stop current update
|
||||
overviewTab.updateService.reset(); // Reset service
|
||||
overviewTab.updateService.restart(); // Restart service with new settings
|
||||
if (tab.getContent() instanceof ThumbOverviewTab) {
|
||||
ThumbOverviewTab overviewTab = (ThumbOverviewTab) tab.getContent();
|
||||
if (overviewTab.getUpdateService() != null) {
|
||||
overviewTab.getUpdateService().reset();
|
||||
overviewTab.getUpdateService().restart();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
@ -773,6 +773,9 @@ public class ThumbOverviewTab extends Tab implements TabSelectionListener {
|
|||
popoverTreeList.setRecorder(recorder);
|
||||
}
|
||||
|
||||
public PaginatedScheduledService getUpdateService() {
|
||||
return updateService;
|
||||
}
|
||||
@Override
|
||||
public void selected() {
|
||||
grid.getChildren().removeAll(noResultsFound, errorLabel);
|
||||
|
|
Loading…
Reference in New Issue