This commit is contained in:
parent
733cdc6da4
commit
674a84dcb0
|
@ -243,11 +243,10 @@ 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) {
|
if (tab.getContent() instanceof ThumbOverviewTab) {
|
||||||
ThumbOverviewTab overviewTab = (ThumbOverviewTab) tab.getContent(); {
|
ThumbOverviewTab overviewTab = (ThumbOverviewTab) tab.getContent();
|
||||||
if (overviewTab.updateService != null) {
|
if (overviewTab.getUpdateService() != null) {
|
||||||
overviewTab.updateService.cancel(); // Stop current update
|
overviewTab.getUpdateService().reset();
|
||||||
overviewTab.updateService.reset(); // Reset service
|
overviewTab.getUpdateService().restart();
|
||||||
overviewTab.updateService.restart(); // Restart service with new settings
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue