This commit is contained in:
J62 2025-03-15 16:25:45 -07:00
parent 733cdc6da4
commit 674a84dcb0
1 changed files with 4 additions and 5 deletions

View File

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