"console desktop" crash :)

Nowardev-Team nowardev at gmail.com
Fri Oct 28 06:58:50 UTC 2011


2011/10/27 Aaron J. Seigo <aseigo at kde.org>

> On Thursday, October 27, 2011 20:15:04 Nowardev-Team wrote:
> > it seems the length of the javascript is the key to get the crash if you
> > have already panels ...
>
> this is they key point, and it is due to having a system tray around and
> then
> creating another one. :/
>
>
mmm this provide to remove old panels .... so basically it should remove all
panels and then.... create the new one...so it should not be a systemtray
around

function remove()
{
  for (i in panelIds) {

        panelById(panelIds[i]).remove()
    }

}
//////////////////////////////////////////////////////////

/////function remove standard///////////////////////////////
function RemoveOldPanels()
{
    for (i in panelIds) {
       // panelById(panelIds[i]).remove()
       p = panelById(panelIds[i]);
       if (typeof p === "undefined") {
       print("E: Couldn't find first panel");
       remove() //load the remove function in case of problems
       }
        else    {
          panelById(panelIds[i]).remove()
                }
                                    }
}



>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20111028/046d860e/attachment-0001.html>


More information about the Plasma-devel mailing list