-
-
Notifications
You must be signed in to change notification settings - Fork 723
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request - Disable ContextMenu Item #520
Comments
|
I know it's a little niche, but the specific situation I wanted it for was an extension that fetched the user's entire library upon initialization and cannot function properly until that is complete. I've already incorporated this into the |
I'm not sure how much work it would be to add the ability to toggle button enabled/disabled status from the code... if it's not something you think can be done easily, don't worry about it. |
Nah I think it's reasonable enough. I will add it in next version. |
Ok sweet! Thanks for chatting with me. |
I made the change but I won't draft a new spicetify version any time soon. So if you want to try it out, just download this file and replace with the original one in const test = new Spicetify.ContextMenu.Item("Test", () => {}, () => true, "album", true);
test.register(); You can set "disabled" prop explicitly and it will be updated visually immediately:
|
Awesome! I will test this out later today when I get home from work |
I replaced my previous |
Ah no, spicetifyWrapper.js is copied in preprocess, you gotta run |
That worked perfectly, thanks for the help. The new feature functioned as intended and I encountered zero problems. Thank you! |
As a developer, I would like the ability to toggle the enabled/disabled status of a custom ContextMenu Item. For example, the "Report" item in the below screenshot is disabled because it is grayed out and unable to be clicked.
The text was updated successfully, but these errors were encountered: