summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaximilian Gerhard <maxbox@directbox.com>2011-10-01 00:48:04 +0200
committerAndreas Loibl <andreas@andreas-loibl.de>2011-10-01 16:34:33 +0200
commita20f235a319f6bb02f42b600eb8371b8b8a8443a (patch)
tree59505af6abc2de60d8b43fc60cf48091e6e02d3c
parenta898abdadd17d32c7dfa43e316db376074521a43 (diff)
downloadetcskel-kanotix-a20f235a319f6bb02f42b600eb8371b8b8a8443a.zip
etcskel-kanotix-a20f235a319f6bb02f42b600eb8371b8b8a8443a.tar.gz
remove all panels first, before creating a new one
-rw-r--r--plasma-desktop/updates/01-kanotix-default-setup.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/plasma-desktop/updates/01-kanotix-default-setup.js b/plasma-desktop/updates/01-kanotix-default-setup.js
index de6e691..eaec917 100644
--- a/plasma-desktop/updates/01-kanotix-default-setup.js
+++ b/plasma-desktop/updates/01-kanotix-default-setup.js
@@ -5,8 +5,10 @@ if (locked) {
locked = false
}
-p = panelById(panelIds[0]);
-if (typeof p === "panel") {
+// remove all panels from desktop
+pIds = panelIds;
+for (i = 0; i < pIds.length; ++i) {
+ p = panelById(pIds[i]);
p.remove();
}