mirror of
https://gitlab.gnome.org/june/top-bar-organizer.git
synced 2026-01-11 16:53:51 +01:00
Fix: Also interact with the panel, if the parent session mode is "user"
Top Bar Organizer used to only interact with the panel, when the current session mode is "user". However Ubuntu uses "ubuntu" as its session mode, which made Top Bar Organizer not work. Fix this by also interacting with the panel, if the parent session mode is "user". See here for some docs on session modes: https://gjs.guide/extensions/topics/session-modes.html
This commit is contained in:
parent
4be693a134
commit
39face9957
2 changed files with 9 additions and 6 deletions
|
|
@ -184,8 +184,9 @@ var BoxOrderManager = GObject.registerClass({
|
|||
* bar to the correct box orders.
|
||||
*/
|
||||
saveNewTopBarItems() {
|
||||
// Only run, when in "user" session mode.
|
||||
if(Main.sessionMode.currentMode !== "user") {
|
||||
// Only run, when the session mode is "user" or the parent session mode
|
||||
// is "user".
|
||||
if(Main.sessionMode.currentMode !== "user" && Main.sessionMode.parentMode !== "user") {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue