appDisplay: Factor out function

The function to update the multiline state of the title label
will be reused by the next commit, so move it into a separate
method.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1496
This commit is contained in:
Georges Basile Stavracas Neto 2020-11-13 14:34:22 -03:00 committed by Florian Müllner
parent 47dc3043df
commit 5d27a5a42a

View File

@ -1495,7 +1495,7 @@ class AppViewItem extends St.Button {
} }
} }
_onHover() { _updateMultiline() {
if (!this.icon.label) if (!this.icon.label)
return; return;
@ -1524,6 +1524,10 @@ class AppViewItem extends St.Button {
}); });
} }
_onHover() {
this._updateMultiline();
}
_onDragBegin() { _onDragBegin() {
this._dragging = true; this._dragging = true;
this.scaleAndFade(); this.scaleAndFade();