Browse Source

show tab tooltip only on title value longer than length limit

PHP-GTK3
yggverse 4 months ago
parent
commit
9c05de981a
  1. 5
      src/Entity/Browser/Container/Page/Title.php

5
src/Entity/Browser/Container/Page/Title.php

@ -53,9 +53,8 @@ class Title @@ -53,9 +53,8 @@ class Title
);
$this->gtk->set_tooltip_text(
is_null($tooltip) ? $value : trim(
$tooltip
)
is_null($tooltip) ? (mb_strlen(strval($value)) > $this->_length ? $value : null)
: trim($tooltip)
);
$this->setSubtitle(

Loading…
Cancel
Save