Fix music player with RTL song names.

This commit is contained in:
John Preston 2022-11-11 11:21:18 +04:00
parent d756ecc609
commit 73e2cc96d1
1 changed files with 2 additions and 2 deletions

View File

@ -859,7 +859,7 @@ void Widget::updateLabelsGeometry() {
const auto widthForName = width()
- left
- getNameRight();
_nameLabel->resizeToWidth(widthForName);
_nameLabel->resizeToNaturalWidth(widthForName);
_nameLabel->moveToLeft(left, st::mediaPlayerNameTop - st::mediaPlayerName.style.font->ascent);
const auto right = getTimeRight();
@ -1056,8 +1056,8 @@ void Widget::handleSongChange() {
.textWithEntities(true);
}
_nameLabel->setMarkedText(textWithEntities);
handlePlaylistUpdate();
updateLabelsGeometry();
}
void Widget::handlePlaylistUpdate() {