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

Fix escaping in linux launcher creating

This commit is contained in:
Ilya Fedin
2020-02-25 06:39:14 +04:00
committed by John Preston
parent 872e063501
commit 8b704f9bd7
5 changed files with 47 additions and 28 deletions

View File

@@ -112,10 +112,12 @@ auto GenerateCodes() {
}
});
});
#ifndef TDESKTOP_DISABLE_REGISTER_CUSTOM_SCHEME
codes.emplace(qsl("registertg"), [](::Main::Session *session) {
Platform::RegisterCustomScheme();
Platform::RegisterCustomScheme(true);
Ui::Toast::Show("Forced custom scheme register.");
});
#endif // !TDESKTOP_DISABLE_REGISTER_CUSTOM_SCHEME
codes.emplace(qsl("export"), [](::Main::Session *session) {
session->data().startExport();
});