Skip to content

Commit

Permalink
Group calls to add and move icon
Browse files Browse the repository at this point in the history
  • Loading branch information
stuarthayhurst committed Jul 10, 2023
1 parent 6ae1c73 commit 9f6695c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions extension/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ const PrivacySettingImageSwitchItem = GObject.registerClass(
style_class: 'popup-menu-icon',
});

this.add_child(this._icon);
this.set_child_below_sibling(this._icon, this.label);
this.insert_child_below(this._icon, this.label);
this._icon.icon_name = icon;
}
}
Expand Down

0 comments on commit 9f6695c

Please sign in to comment.