Skip to main content

Notice

Please be aware that much of the software linked to or mentioned on this forum is niche and therefore infrequently downloaded. Lots of anti-virus scanners and so-called malware detectors like to flag infrequently downloaded software as bad until it is either downloaded enough times, or its developer actually bothers with getting each individual release allow listed by every single AV vendor. You can do many people a great favor when encountering such a "problem" example by submitting them to your AV vendor for examination. For almost everything on this forum, it is a false positive.
Topic: How to know if menu is triggered from playlist (Read 2121 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.

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).

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?

 
SimplePortal 1.0.0 RC1 © 2008-2021