2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Start passport support: handle link, receive form.

This commit is contained in:
John Preston
2018-03-18 12:51:14 +04:00
parent e122353bfb
commit ddb4527159
18 changed files with 471 additions and 58 deletions

View File

@@ -12,8 +12,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "styles/style_settings.h"
#include "styles/style_window.h"
#include "styles/style_boxes.h"
#include "platform/platform_specific.h"
#include "ui/widgets/scroll_area.h"
#include "ui/widgets/buttons.h"
#include "ui/toast/toast.h"
#include "mainwindow.h"
#include "mainwidget.h"
#include "storage/localstorage.h"
@@ -114,6 +116,10 @@ void fillCodes() {
}
});
});
Codes.insert(qsl("registertg"), [] {
Platform::RegisterCustomScheme();
Ui::Toast::Show("Forced custom scheme register.");
});
auto audioFilters = qsl("Audio files (*.wav *.mp3);;") + FileDialog::AllFilesFilter();
auto audioKeys = {