fix(IgnoreActivities): id -> exePath (#164)

Co-authored-by: Ven <vendicated@riseup.net>
This commit is contained in:
Nuckyz 2022-10-27 05:27:52 -03:00 committed by GitHub
parent 13882b5732
commit 9548978d80
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -157,8 +157,8 @@ export default definePlugin({
if (exePath) return !ignoredActivitiesCache.includes(exePath); if (exePath) return !ignoredActivitiesCache.includes(exePath);
} }
} }
/** Registered Games tab games have an "id" prop */ /** Registered Games tab games have an "exePath" prop */
else if ("id" in props) { else if ("exePath" in props) {
if (props.id !== undefined) return !ignoredActivitiesCache.includes(props.id); if (props.id !== undefined) return !ignoredActivitiesCache.includes(props.id);
else return !ignoredActivitiesCache.includes(props.exePath); else return !ignoredActivitiesCache.includes(props.exePath);
} }