fix settings location fallback

This commit is contained in:
Vendicated 2025-02-16 22:21:26 +01:00
parent 610b09ccec
commit ec2cb67e10
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18

View file

@ -158,6 +158,9 @@ export default definePlugin({
aboveActivity: getIntlMessage("ACTIVITY_SETTINGS")
};
if (!names[settingsLocation] || names[settingsLocation].endsWith("_SETTINGS"))
return firstChild === "PREMIUM";
return header === names[settingsLocation];
} catch {
return firstChild === "PREMIUM";