show tab tooltip only on title value longer than length limit

This commit is contained in:
yggverse 2024-07-09 08:49:58 +03:00
parent 506bcac745
commit 9c05de981a

View file

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