mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 10:27:35 +00:00
Applications: Stop calling set_tooltip_deprecated when we do have String
This commit is contained in:
parent
9c923f20f4
commit
46a97844c7
3 changed files with 4 additions and 4 deletions
|
@ -118,9 +118,9 @@ void LinkLabel::did_change_text()
|
|||
void LinkLabel::update_tooltip_if_needed()
|
||||
{
|
||||
if (width() < font().width(text())) {
|
||||
set_tooltip_deprecated(text().to_deprecated_string());
|
||||
set_tooltip(text());
|
||||
} else {
|
||||
set_tooltip_deprecated({});
|
||||
set_tooltip({});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue