This commit is contained in:
J62 2025-03-15 16:27:25 -07:00
parent 674a84dcb0
commit 819c80ca30
1 changed files with 2 additions and 2 deletions

View File

@ -242,8 +242,8 @@ public class SettingsTab extends Tab implements TabSelectionListener {
private void refreshChaturbateTabs() {
getTabPane().getTabs().forEach(tab -> {
if (tab.getContent() instanceof ThumbOverviewTab) {
ThumbOverviewTab overviewTab = (ThumbOverviewTab) tab.getContent();
Node content = tab.getContent();
if (content instanceof ThumbOverviewTab overviewTab) {
if (overviewTab.getUpdateService() != null) {
overviewTab.getUpdateService().reset();
overviewTab.getUpdateService().restart();