mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
show tab tooltip only on title value longer than length limit
This commit is contained in:
parent
506bcac745
commit
9c05de981a
1 changed files with 2 additions and 3 deletions
|
|
@ -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(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue