Help - Search - Members - Calendar
Full Version: How to know if menu is triggered from playlist
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Development - (fb2k)
/\/irana
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?
Peter
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.
Peter
Changed in beta3, now a more generic way to determine where contextmenu parameters are from (GUID instead of bool).
/\/irana
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?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.