Fix webview on macOS.

This commit is contained in:
John Preston 2021-02-26 21:19:08 +04:00
parent 9f04570335
commit d3829c52ec
1 changed files with 6 additions and 1 deletions

View File

@ -51,7 +51,12 @@ void GetPaymentForm(not_null<const HistoryItem*> msg) {
MTP_int(msgId) MTP_int(msgId)
)).done([=](const MTPpayments_PaymentForm &result) { )).done([=](const MTPpayments_PaymentForm &result) {
const auto window = new Ui::Window(); const auto window = new Ui::Window();
window->setGeometry({ 100, 100, 1280, 960 }); window->setGeometry({
style::ConvertScale(100),
style::ConvertScale(100),
style::ConvertScale(640),
style::ConvertScale(480)
});
window->show(); window->show();
window->events() | rpl::start_with_next([=](not_null<QEvent*> e) { window->events() | rpl::start_with_next([=](not_null<QEvent*> e) {