Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: How to know if menu is triggered from playlist (Read 2945 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

How to know if menu is triggered from playlist

menu_item class in 0.7SDK
Quote
...
virtual void context_command(int n,const ptr_list_base<metadb_handle> & data,bool is_playlist)=0;

menu_item class in 0.8SDK
Quote
...
virtual void context_command(unsigned n,const ptr_list_base<metadb_handle> & data)=0;


"is_playlist" has gone in 0.8 SDK
Is there other way to know if context command is performed from playlist?

How to know if menu is triggered from playlist

Reply #1
is_playlist switch was a bad misfeature of old API and has been removed. Put your playlist-specific context items in playlist/selection menu instead.
Microsoft Windows: We can't script here, this is bat country.

How to know if menu is triggered from playlist

Reply #2
Changed in beta3, now a more generic way to determine where contextmenu parameters are from (GUID instead of bool).
Microsoft Windows: We can't script here, this is bat country.

How to know if menu is triggered from playlist

Reply #3
Thanks
It fits my needed,so I could update my plugin for 0.8.

another question
in 0.8 change log
Quote
...
- file size tracking
...

Are there any APIs for this new feature?