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

Move SendButton/EmojiButton to td_ui.

This commit is contained in:
John Preston
2020-10-13 13:00:35 +03:00
parent af1854e877
commit 39cf51c066
23 changed files with 624 additions and 506 deletions

View File

@@ -63,11 +63,7 @@ void SetupPhoto(
st::settingsInfoPhotoSet);
upload->setFullRadius(true);
upload->addClickHandler([=] {
const auto imageExtensions = cImgExtensions();
const auto filter = qsl("Image files (*")
+ imageExtensions.join(qsl(" *"))
+ qsl(");;")
+ FileDialog::AllFilesFilter();
const auto filter = FileDialog::ImagesOrAllFilter();
const auto callback = [=](const FileDialog::OpenResult &result) {
if (result.paths.isEmpty() && result.remoteContent.isEmpty()) {
return;