I want to limit my ui extension plugin (panel) to be single instance, from the source comment, I think the below 2 functions in the class should be used:
class NOVTABLE window : public extension_base
{
public:
virtual const bool get_is_single_instance() const = 0;
virtual bool is_available(const window_host_ptr & p_host) const =0;
....................
....................
};
if I override get_is_single_instance(), seems useless.
if I override is_available() and return false, the panel still can be added to the layout. how can I limit the panel to be add to the layout once?
for example, the foo_uie_albumart, once the panel of it is added to the layout, the popup menu of the layout will not list its name anymore, this is what I want.
Thanks
