> I don't think we do either. The problem is that if we do have that, the for
> loop immediately after that adds another ShowDesktop Icon to the switcher. I'm
> trying adding an if statement checking if it is of TYPE_DESKTOP or not.
Have you tried my code? It doesn't add a duplicated icon. No worry about that.
> I don't think we do either. The problem is that if we do have that, the for
> loop immediately after that adds another ShowDesktop Icon to the switcher. I'm
> trying adding an if statement checking if it is of TYPE_DESKTOP or not.
Have you tried my code? It doesn't add a duplicated icon. No worry about that.
57 + if(icon- >GetName( )!="DesktopLaun cherIcon" ) { push_back( icon);
58 + results.
59 + }
I don't think that it's really needed according to my tests, however that's not logically wrong, but please fix indentation and use GetIconType here.
I.e.
if (icon-> GetIconType( ) != AbstractLaunche rIcon:: IconType: :TYPE_DESKTOP) push_back( icon);
{
results.
}