Fix isEnabled for platform-dependent plugins #3883

Open
dima-dencep wants to merge 1 commit from dima-dencep/master into master
dima-dencep commented 2025-09-13 12:34:22 +00:00 (Migrated from github.com)

This PR fixes #3857 (and possibly other issues)

The issue was that transparent-player is only available for Windows, so it is not exposed in allPlugins()[plugin], and when attempting to obtain .config, an exception occurred that prevented the plugin (album-color-theme) from working correctly.

With this one-character fix (yes, it's strange), everything returned to working order:
image

This PR fixes #3857 (and possibly other issues) The issue was that `transparent-player` is only available for Windows, so it is not exposed in `allPlugins()[plugin]`, and when attempting to obtain `.config`, an exception occurred that prevented the plugin (album-color-theme) from working correctly. With this one-character fix (yes, it's strange), everything returned to working order: <img width="1800" height="1169" alt="image" src="https://github.com/user-attachments/assets/bcc80374-7b1b-4cfb-8b9e-28f4e394dd47" />
Owner

ah yes, forgot the ?.

ah yes, forgot the `?.`
arjix approved these changes 2025-09-13 17:47:37 +00:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin dima-dencep/master:dima-dencep/master
git switch dima-dencep/master

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch master
git merge --no-ff dima-dencep/master
git switch dima-dencep/master
git rebase master
git switch master
git merge --ff-only dima-dencep/master
git switch dima-dencep/master
git rebase master
git switch master
git merge --no-ff dima-dencep/master
git switch master
git merge --squash dima-dencep/master
git switch master
git merge --ff-only dima-dencep/master
git switch master
git merge dima-dencep/master
git push origin master
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: YTMD/youtube-music#3883
No description provided.