Commit 43ea8ac1 authored by Bhushan Shah's avatar Bhushan Shah 📱 Committed by Bhushan Shah
Browse files

shell: keep panelsfix.js in sync with layout.js

Otherwise if we add the panels which were missing, we will end up adding
panel without notifications and mediacontroller.


(cherry picked from commit e92188b5)
parent 72f9f7c1
var desktopsArray = desktopsForActivity(currentActivity());
for (var j = 0; j < desktopsArray.length; j++) {
desktopsArray[j].wallpaperPlugin = "org.kde.image";
}
desktopsArray[0].addWidget("org.kde.phone.krunner", 0, 0, screenGeometry(0).width, 20)
// keep this list in sync with shell/contents/updates/panelsfix.js
var panel = new Panel("org.kde.phone.panel");
panel.addWidget("org.kde.plasma.notifications");
panel.addWidget("org.kde.plasma.mediacontroller");
......
......@@ -11,10 +11,14 @@ for (let i in panels()) {
}
if (!topFound) {
// keep widget list synced with the layout.js
let topPanel = new Panel("org.kde.phone.panel")
topPanel.location = "Top";
topPanel.addWidget("org.kde.plasma.notifications");
topPanel.addWidget("org.kde.plasma.mediacontroller");
topPanel.location = "top";
}
if (!bottomFound) {
let topPanel = new Panel("org.kde.phone.taskpanel")
topPanel.location = "Bottom";
let bottomPanel = new Panel("org.kde.phone.taskpanel")
bottomPanel.location = "bottom";
bottomPanel.height = 2 * gridUnit;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment