2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

document captions display and adding done

This commit is contained in:
John Preston
2015-12-28 13:28:00 +03:00
parent b23cd9fc11
commit 4f6c8f8008
8 changed files with 851 additions and 85 deletions

View File

@@ -266,11 +266,7 @@ void PhotoSendBox::showAll() {
_cancel.show();
if (_file && _file->type == PreparePhoto) {
_compressed.show();
if (_compressed.checked()) {
_caption.show();
} else {
_caption.hide();
}
_caption.show();
} else {
_caption.hide();
_compressed.hide();
@@ -300,7 +296,7 @@ void PhotoSendBox::onSend(bool ctrlShiftEnter) {
}
}
if (!_caption.isHidden()) {
_file->photoCaption = prepareText(_caption.getLastText(), true);
_file->caption = prepareText(_caption.getLastText(), true);
}
App::main()->onSendFileConfirm(_file, ctrlShiftEnter);
} else {