mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-22 19:53:48 +08:00
fix(native): audio capture volume (#11240)
This commit is contained in:
@@ -524,10 +524,13 @@ async function getAllApps(): Promise<AppInfo[]> {
|
||||
}
|
||||
});
|
||||
|
||||
const filteredApps = apps.filter(
|
||||
(v): v is AppInfo =>
|
||||
v !== null && !v.bundleIdentifier.startsWith('com.apple')
|
||||
);
|
||||
const filteredApps = apps.filter((v): v is AppInfo => {
|
||||
return (
|
||||
v !== null &&
|
||||
(!v.bundleIdentifier.startsWith('com.apple') ||
|
||||
v.bundleIdentifier === 'com.apple.Music')
|
||||
);
|
||||
});
|
||||
|
||||
for (const app of filteredApps) {
|
||||
if (filteredApps.some(a => a.processId === app.processGroupId)) {
|
||||
|
||||
Reference in New Issue
Block a user