PDA

View Full Version : Shortcut.setText after desktop.addShortcut() doesn't effect



egotec
3 Aug 2010, 4:14 AM
Hello.

After I created a desktop shortcut and added it to the desktop, I can't change the text for it.


Shortcut s2 = new Shortcut();
s2.setText("AA"); // works
s2.setIcon(icon); // works
desktop.addShortcut(s2);
s2.setText("hahaha"); // DOESN'T WORK !
s2.setIcon(IconHelper.create("/img/icons/48/components.png",48,48)); // works


As you can see, after desktop.addShortcut() I can change the icon but not the text.

Thanks.

sven
3 Aug 2010, 4:17 AM
This was already asked before and it already got fixed in SVN. Take a look at this thread which was found using the forum search: http://www.sencha.com/forum/showthread.php?105359-FNR-Desktop-Shortcut-issue&highlight=Shortcut