2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Use nice media names in Downloads.

This commit is contained in:
John Preston
2022-02-27 17:34:22 +03:00
parent dde4868540
commit bff8313a37
10 changed files with 42 additions and 15 deletions

View File

@@ -941,9 +941,9 @@ Document::Document(
, _datew(st::normalFont->width(_date)) {
_name.setMarkedText(
st::defaultTextStyle,
(_forceFileLayout
? Ui::Text::Bold(_data->filename())
: Ui::Text::FormatSongNameFor(_data).textWithEntities()),
(!_forceFileLayout
? Ui::Text::FormatSongNameFor(_data).textWithEntities()
: Ui::Text::FormatDownloadsName(_data)),
_documentNameOptions);
AddComponents(Info::Bit());