update select dialog

This commit is contained in:
Jade (Rose) Rowland 2024-08-11 11:01:17 -04:00
parent e9a0a06b77
commit cba9169b2f
4 changed files with 13 additions and 8 deletions

View file

@ -113,7 +113,14 @@ export function SettingsTab({ started }) {
<AudioDeviceSelector
isDisabled={started}
audioDeviceName={audioDeviceName}
onChange={(audioDeviceName) => settingsMap.setKey('audioDeviceName', audioDeviceName)}
onChange={(audioDeviceName) => {
confirmDialog(RELOAD_MSG).then((r) => {
if (r == true) {
settingsMap.setKey('audioDeviceName', audioDeviceName);
return window.location.reload();
}
});
}}
/>
</FormItem>
)}