Update GeneralSettings.jsx to handle 'General' panel changes
This commit is contained in:
@@ -264,7 +264,7 @@ export default function GeneralSettings({
|
|||||||
}, [whisperModels, transcriptionModel, onTranscriptionModelChange, panel, settingsHydrated]);
|
}, [whisperModels, transcriptionModel, onTranscriptionModelChange, panel, settingsHydrated]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (panel !== 'Microphone') {
|
if (panel !== 'General') {
|
||||||
return () => {};
|
return () => {};
|
||||||
}
|
}
|
||||||
if (!audioInputSupported) {
|
if (!audioInputSupported) {
|
||||||
@@ -588,7 +588,7 @@ export default function GeneralSettings({
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (panel === 'Microphone') {
|
if (panel === 'General') {
|
||||||
return (
|
return (
|
||||||
<div className="settings-content-panel">
|
<div className="settings-content-panel">
|
||||||
<div className="setting-section">
|
<div className="setting-section">
|
||||||
|
|||||||
Reference in New Issue
Block a user