mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 22:27:20 +02:00
Use navigation cancel in Webview.
This commit is contained in:
parent
c74e240d30
commit
25bbde2739
2 changed files with 6 additions and 4 deletions
|
@ -152,10 +152,12 @@ void GetPaymentForm(not_null<const HistoryItem*> msg) {
|
|||
});
|
||||
|
||||
webview->setNavigationHandler([=](const QString &uri) {
|
||||
if (Core::TryConvertUrlToLocal(uri) != uri) {
|
||||
window->deleteLater();
|
||||
App::wnd()->activate();
|
||||
if (Core::TryConvertUrlToLocal(uri) == uri) {
|
||||
return true;
|
||||
}
|
||||
window->deleteLater();
|
||||
App::wnd()->activate();
|
||||
return false;
|
||||
});
|
||||
|
||||
webview->init(R"(
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 3f004da92dd1368d8bad4bc3838941fef10af76d
|
||||
Subproject commit 7491d160231a18dec6aec1f3c1e1575382d10745
|
Loading…
Add table
Reference in a new issue