fix: windows microphone perms handling

This commit is contained in:
haritabh-z01 2025-12-13 01:49:26 +05:30
parent 66a2ad2095
commit 74d779f6e7
2 changed files with 12 additions and 8 deletions

View file

@ -73,10 +73,12 @@ export function UnifiedPermissionsStep({
};
const handleOpenMicrophoneSettings = async () => {
// Open System Preferences > Security & Privacy > Privacy > Microphone
await openExternal.mutateAsync({
url: "x-apple.systempreferences:com.apple.preference.security?Privacy_Microphone",
});
// Open platform-specific microphone privacy settings
const url =
platform === "darwin"
? "x-apple.systempreferences:com.apple.preference.security?Privacy_Microphone"
: "ms-settings:privacy-microphone";
await openExternal.mutateAsync({ url });
};
const getMicrophoneStatus = () => {

View file

@ -80,10 +80,12 @@ export function PermissionsScreen({
};
const handleOpenMicrophoneSettings = async () => {
// Open System Preferences > Security & Privacy > Privacy > Microphone
await openExternal.mutateAsync({
url: "x-apple.systempreferences:com.apple.preference.security?Privacy_Microphone",
});
// Open platform-specific microphone privacy settings
const url =
platform === "darwin"
? "x-apple.systempreferences:com.apple.preference.security?Privacy_Microphone"
: "ms-settings:privacy-microphone";
await openExternal.mutateAsync({ url });
};
const getMicrophoneStatus = () => {