mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Fix caption/comment label in SendFilesBox.
This commit is contained in:
@@ -591,6 +591,7 @@ void SendFilesBox::pushBlock(int from, int till) {
|
||||
void SendFilesBox::refreshControls() {
|
||||
refreshTitleText();
|
||||
updateSendWayControlsVisibility();
|
||||
updateCaptionPlaceholder();
|
||||
}
|
||||
|
||||
void SendFilesBox::setupSendWayControls() {
|
||||
|
||||
@@ -154,11 +154,15 @@ bool PreparedList::canAddCaption(bool sendingAlbum) const {
|
||||
files,
|
||||
PreparedFile::Type::File,
|
||||
&PreparedFile::type);
|
||||
const auto hasMusic = ranges::contains(
|
||||
files,
|
||||
PreparedFile::Type::Music,
|
||||
&PreparedFile::type);
|
||||
const auto hasNotGrouped = ranges::contains(
|
||||
files,
|
||||
PreparedFile::Type::None,
|
||||
&PreparedFile::type);
|
||||
return !hasFiles && !hasNotGrouped;
|
||||
return !hasFiles && !hasMusic && !hasNotGrouped;
|
||||
}
|
||||
|
||||
bool PreparedList::hasGroupOption(bool slowmode) const {
|
||||
|
||||
Reference in New Issue
Block a user