Skip to content

Commit a07e240

Browse files
committed
fixed sub menu items
1 parent f19d681 commit a07e240

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/SteveEdson/BitBar.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ public function enableRefresh() {
166166
* @param $image
167167
* @param bool $isImageTemplate
168168
* @return $this
169-
* @internal param bool $isTemplate
170169
*/
171170
public function setImage($image, $isImageTemplate = false) {
172171
$this->image = $image;
@@ -348,7 +347,7 @@ public function format() {
348347
public function show($withDivide = true) {
349348
echo $this->format();
350349

351-
if($withDivide) {
350+
if(!$this->withinSubMenu && $withDivide) {
352351
echo "\n---\n";
353352
} else {
354353
echo "\n";

0 commit comments

Comments
 (0)