fix: windows microphone perms handling
This commit is contained in:
parent
66a2ad2095
commit
74d779f6e7
2 changed files with 12 additions and 8 deletions
|
|
@ -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 = () => {
|
||||
|
|
|
|||
|
|
@ -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 = () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue