Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions openbar@neuromorph/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -383,15 +383,16 @@ export default class Openbar extends Extension {
this.applySectionStyles(sectionList, add);

const msgHbox = msgbox.get_child_at_index(1); // hbox at botton for dnd and clear buttons
let clearBtn;
if(this.gnomeVersion < 49) {
const dndBtn = msgHbox.get_child_at_index(1);
this.applyMenuClass(dndBtn, add);
const toggleSwitch = dndBtn.get_child_at_index(0);
this.applyMenuClass(toggleSwitch, add);
const clearBtn = msgHbox.get_child_at_index(2);
clearBtn = msgHbox.get_child_at_index(2);
}
else {
const clearBtn = msgHbox.get_child_at_index(1);
clearBtn = msgHbox.get_child_at_index(1);
}
this.applyMenuClass(clearBtn, add);

Expand Down Expand Up @@ -1661,4 +1662,3 @@ export default class Openbar extends Extension {
this._shellSettings = null;
}
}

7 changes: 4 additions & 3 deletions openbar@neuromorph/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@
"46",
"47",
"48",
"49"
"49",
"50"
],
"url": "https://github.com/neuromorph/openbar",
"url": "https://github.com/Dank-del/openbar",
"uuid": "openbar@neuromorph",
"version": 42
"version": 43
}