dash: Move item declaration on top
Otherwise it is not clear what is the item variable that we are passing to _itemMenuStateChanged(). Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2988>
This commit is contained in:
parent
b4676f0e9e
commit
552d2172bc
@ -512,13 +512,13 @@ export const Dash = GObject.registerClass({
|
||||
}
|
||||
|
||||
_createAppItem(app) {
|
||||
let item = new DashItemContainer();
|
||||
let appIcon = new DashIcon(app);
|
||||
|
||||
appIcon.connect('menu-state-changed', (o, opened) => {
|
||||
this._itemMenuStateChanged(item, opened);
|
||||
});
|
||||
|
||||
let item = new DashItemContainer();
|
||||
item.setChild(appIcon);
|
||||
|
||||
// Override default AppIcon label_actor, now the
|
||||
|
Loading…
x
Reference in New Issue
Block a user