This commit is contained in:
parent
733cdc6da4
commit
674a84dcb0
|
@ -243,11 +243,10 @@ public class SettingsTab extends Tab implements TabSelectionListener {
|
|||
private void refreshChaturbateTabs() {
|
||||
getTabPane().getTabs().forEach(tab -> {
|
||||
if (tab.getContent() instanceof ThumbOverviewTab) {
|
||||
ThumbOverviewTab overviewTab = (ThumbOverviewTab) tab.getContent(); {
|
||||
if (overviewTab.updateService != null) {
|
||||
overviewTab.updateService.cancel(); // Stop current update
|
||||
overviewTab.updateService.reset(); // Reset service
|
||||
overviewTab.updateService.restart(); // Restart service with new settings
|
||||
ThumbOverviewTab overviewTab = (ThumbOverviewTab) tab.getContent();
|
||||
if (overviewTab.getUpdateService() != null) {
|
||||
overviewTab.getUpdateService().reset();
|
||||
overviewTab.getUpdateService().restart();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue