panels: Fix loading

This commit is contained in:
Devin Lin 2023-03-05 10:22:00 -08:00
parent 94baafee6e
commit 8b700ab86f
3 changed files with 10 additions and 12 deletions

View file

@ -1,4 +1,5 @@
{
"KPackageStructure": "Plasma/Applet",
"KPlugin": {
"Authors": [
{

View file

@ -1,4 +1,5 @@
{
"KPackageStructure": "Plasma/Applet",
"KPlugin": {
"Authors": [
{

View file

@ -17,15 +17,11 @@ for (var j = 0; j < desktopsArray.length; j++) {
}
// keep this list in sync with shell/contents/updates/panelsfix.js
// var panel = new Panel("org.kde.plasma.mobile.panel");
// panel.location = "top";
// panel.addWidget("org.kde.plasma.notifications");
// panel.height = 1.25 * gridUnit; // HACK: supposed to be gridUnit + smallSpacing, but it doesn't seem to give the correct number
//
// console.log('script');
//
// var bottomPanel = new Panel("org.kde.plasma.mobile.taskpanel")
// bottomPanel.location = "bottom";
// bottomPanel.height = 2 * gridUnit;
//
// console.log('script');
var panel = new Panel("org.kde.plasma.mobile.panel");
panel.location = "top";
panel.addWidget("org.kde.plasma.notifications");
panel.height = 1.25 * gridUnit; // HACK: supposed to be gridUnit + smallSpacing, but it doesn't seem to give the correct number
var bottomPanel = new Panel("org.kde.plasma.mobile.taskpanel")
bottomPanel.location = "bottom";
bottomPanel.height = 2 * gridUnit;