Skip to content

Commit

Permalink
Fix menu error with output parsing disabled (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphaelRochet committed Mar 24, 2024
1 parent 0dfe681 commit 3164821
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -431,12 +431,12 @@ class ArchUpdateIndicator extends Button {
var chunks = menutext.split(" ",2);
menutext = chunks[0];
}
this.menuExpander.menu.box.add( this._createPackageLabel(menutext) );
this.menuExpander.menu.box.add_child( this._createPackageLabel(menutext) );
} else {
let matches = item.match(RE_UpdateLine);
if (matches == null) {
// Not an update
this.menuExpander.menu.box.add( new St.Label({ text: item, style_class: 'arch-updates-update-title' }) );
this.menuExpander.menu.box.add_child( new St.Label({ text: item, style_class: 'arch-updates-update-title' }) );
} else {
let hBox = new St.BoxLayout({ vertical: false });
hBox.add_child( this._createPackageLabel(matches[1]) );
Expand Down

0 comments on commit 3164821

Please sign in to comment.