mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
add back panels if they disappeared
This commit is contained in:
parent
2e495f72cd
commit
f19f629b4b
1 changed files with 20 additions and 0 deletions
20
shell/contents/updates/panelsfix.js
Normal file
20
shell/contents/updates/panelsfix.js
Normal file
|
|
@ -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";
|
||||
}
|
||||
Loading…
Reference in a new issue