PluginProbe
BeyondWords – AI audio for publishers / 7.2.0
BeyondWords – AI audio for publishers v7.2.0
7.2.0 7.1.0 trunk 4.0.0 4.0.1 4.0.2 4.0.3 4.0.4 4.0.5 4.0.6 4.1.0 4.1.1 4.1.2 4.2.0 4.2.1 4.2.2 4.2.3 4.2.4 4.3.0 4.4.0 4.5.0 4.5.1 4.6.0 4.6.1 4.6.2 All 44 releases
← All changes | src/editor/components/voice-picker/index.js +11 -0 7.1.0 → 7.2.0 View file →
@@ -137,8 +137,19 @@
137 137
138 138 // Open on "All" when the saved voice is not native to the language, so that
139 139 // voice stays visible in the list.
140 140 const nativeSeeded = useRef( false );
141 +
142 + // Disabled stays mounted, so reset by hand or Customize off → on never re-seeds.
143 + // The filter resets too: the seeding effect only ever opens it to "All".
144 + useEffect( () => {
145 + if ( ! enabled ) {
146 + seedStep.current = 0;
147 + nativeSeeded.current = false;
148 + setNativeFilter( NATIVE_ONLY );
149 + }
150 + }, [ enabled ] );
151 +
141 152 useEffect( () => {
142 153 if ( nativeSeeded.current || ! enabled || voicesResolving ) {
143 154 return;
144 155 }