Skip to content

Commit

Permalink
Hide the button if plugin returns no lines above the first separator.
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-g committed Nov 7, 2018
1 parent af6f359 commit 893adc0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions argos@pew.worldwidemann.com/button.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,11 @@ var ArgosButton = new Lang.Class({
this._cycleTimeout = null;
}

this.actor.visible = buttonLines.length > 0 || !dropdownMode;

if (!this.actor.visible)
return;

if (buttonLines.length === 0) {
this._lineView.setMarkup(GLib.markup_escape_text(this._file.get_basename(), -1));
} else if (buttonLines.length === 1) {
Expand Down

0 comments on commit 893adc0

Please sign in to comment.