Again no need to call updateSettings twice here - just update knownThemes at the same time as enableThemes and eliminate the "else" block.