Skip to main content
Topic: How to know if menu is triggered from playlist (Read 1943 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-2018