Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Button invisible if only a seperator is outputted.
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueBoxWare committed Nov 17, 2018
1 parent 73408e5 commit c71887d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions banana@blueboxware.github.com/button.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,11 @@ var BananaButton = 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)
Expand Down
2 changes: 1 addition & 1 deletion scripts/settings_menu.3l..sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function entry() {
fi
}

entry "gnome-tweaks" "Tweaks"
entry "gnome-tweaks" "Tweaks" "preferences-other"
entry "dconf-editor" "Dconf editor"
entry "gconf-editor" "Gconf editor"
entry "pavucontrol" "Pulseaudio"
Expand Down

0 comments on commit c71887d

Please sign in to comment.