Skip to content

Commit 4c73eaa

Browse files
committed
added missing super._init()
1 parent 7e3d366 commit 4c73eaa

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

extension.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,16 @@ if (shell_Version < '3.36') {
5656
super({
5757
reactive: false
5858
});
59+
super._init();
60+
this.actor.connect('button-press-event', openUserAccount);
61+
5962
var box = new St.BoxLayout({
6063
x_align: Clutter.ActorAlign.CENTER,
6164
});
6265
this.actor.add(box, {
6366
expand: true
6467
});
65-
this.actor.connect('button-press-event', openUserAccount);
66-
67-
}
68+
}
6869
}
6970
} else {
7071
var UserIconMenuItem = GObject.registerClass(
@@ -74,13 +75,14 @@ if (shell_Version < '3.36') {
7475
class UserIconMenuItem extends PopupMenu.PopupBaseMenuItem {
7576
_init() {
7677
super._init();
78+
this.actor.connect('button-press-event', openUserAccount);
79+
7780
var box = new St.BoxLayout({
7881
x_align: Clutter.ActorAlign.CENTER,
7982
});
8083
this.actor.add(box, {
8184
expand: true
8285
});
83-
this.actor.connect('button-press-event', openUserAccount);
8486
}
8587
}
8688
);

0 commit comments

Comments
 (0)