Remove unnecessary dialog on macOS Sequoia
This commit is contained in:
parent
b26466e59d
commit
6fc62f29cb
1 changed files with 4 additions and 1 deletions
|
@ -6,6 +6,7 @@ import {
|
||||||
hasScreenCapturePermission,
|
hasScreenCapturePermission,
|
||||||
openSystemPreferences,
|
openSystemPreferences,
|
||||||
} from 'mac-screen-capture-permissions';
|
} from 'mac-screen-capture-permissions';
|
||||||
|
import { isSupported as isNativeMacScreenShareSupported } from '@indutny/mac-screen-share';
|
||||||
import { omit } from 'lodash';
|
import { omit } from 'lodash';
|
||||||
import type { ReadonlyDeep } from 'type-fest';
|
import type { ReadonlyDeep } from 'type-fest';
|
||||||
import {
|
import {
|
||||||
|
@ -1316,7 +1317,9 @@ function getPresentingSources(): ThunkAction<
|
||||||
// capture that state correctly.
|
// capture that state correctly.
|
||||||
const platform = getPlatform(getState());
|
const platform = getPlatform(getState());
|
||||||
const needsPermission =
|
const needsPermission =
|
||||||
platform === 'darwin' && !hasScreenCapturePermission();
|
platform === 'darwin' &&
|
||||||
|
!isNativeMacScreenShareSupported &&
|
||||||
|
!hasScreenCapturePermission();
|
||||||
|
|
||||||
const capturer = new DesktopCapturer({
|
const capturer = new DesktopCapturer({
|
||||||
i18n,
|
i18n,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue