Fix webview links opening from webview.

This commit is contained in:
John Preston 2023-05-31 21:44:46 +04:00
parent 898581badd
commit e1350d6813
1 changed files with 3 additions and 1 deletions

View File

@ -1061,8 +1061,10 @@ void AttachWebView::show(
} else if (!local.startsWith(u"tg://"_q, Qt::CaseInsensitive)) {
return false;
}
UrlClickHandler::Open(local, {});
close();
crl::on_main([=] {
UrlClickHandler::Open(local, {});
});
return true;
};
const auto panel = std::make_shared<