diff --git a/shell/contents/updates/panelsfix.js b/shell/contents/updates/panelsfix.js new file mode 100644 index 00000000..21d1fdc6 --- /dev/null +++ b/shell/contents/updates/panelsfix.js @@ -0,0 +1,20 @@ +let topFound = false +let bottomFound = false + +for (let i in panels()) { + print(panels()[i].type) + if (panels()[i].type === "org.kde.phone.panel") { + topFound = true; + } else if (panels()[i].type === "org.kde.phone.taskpanel") { + topFound = true; + } +} + +if (!topFound) { + let topPanel = new Panel("org.kde.phone.panel") + topPanel.location = "Top"; +} +if (!bottomFound) { + let topPanel = new Panel("org.kde.phone.taskpanel") + topPanel.location = "Bottom"; +}