mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-07-28 08:22:59 +02:00
Fix caption/comment label in SendFilesBox.
This commit is contained in:
parent
39777f6149
commit
5cc1871f2f
2 changed files with 6 additions and 1 deletions
|
@ -591,6 +591,7 @@ void SendFilesBox::pushBlock(int from, int till) {
|
||||||
void SendFilesBox::refreshControls() {
|
void SendFilesBox::refreshControls() {
|
||||||
refreshTitleText();
|
refreshTitleText();
|
||||||
updateSendWayControlsVisibility();
|
updateSendWayControlsVisibility();
|
||||||
|
updateCaptionPlaceholder();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SendFilesBox::setupSendWayControls() {
|
void SendFilesBox::setupSendWayControls() {
|
||||||
|
|
|
@ -154,11 +154,15 @@ bool PreparedList::canAddCaption(bool sendingAlbum) const {
|
||||||
files,
|
files,
|
||||||
PreparedFile::Type::File,
|
PreparedFile::Type::File,
|
||||||
&PreparedFile::type);
|
&PreparedFile::type);
|
||||||
|
const auto hasMusic = ranges::contains(
|
||||||
|
files,
|
||||||
|
PreparedFile::Type::Music,
|
||||||
|
&PreparedFile::type);
|
||||||
const auto hasNotGrouped = ranges::contains(
|
const auto hasNotGrouped = ranges::contains(
|
||||||
files,
|
files,
|
||||||
PreparedFile::Type::None,
|
PreparedFile::Type::None,
|
||||||
&PreparedFile::type);
|
&PreparedFile::type);
|
||||||
return !hasFiles && !hasNotGrouped;
|
return !hasFiles && !hasMusic && !hasNotGrouped;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PreparedList::hasGroupOption(bool slowmode) const {
|
bool PreparedList::hasGroupOption(bool slowmode) const {
|
||||||
|
|
Loading…
Add table
Reference in a new issue