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() {
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();
}
}
});