mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix webview links opening from webview.
This commit is contained in:
parent
898581badd
commit
e1350d6813
1 changed files with 3 additions and 1 deletions
|
@ -1061,8 +1061,10 @@ void AttachWebView::show(
|
||||||
} else if (!local.startsWith(u"tg://"_q, Qt::CaseInsensitive)) {
|
} else if (!local.startsWith(u"tg://"_q, Qt::CaseInsensitive)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
UrlClickHandler::Open(local, {});
|
|
||||||
close();
|
close();
|
||||||
|
crl::on_main([=] {
|
||||||
|
UrlClickHandler::Open(local, {});
|
||||||
|
});
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
const auto panel = std::make_shared<
|
const auto panel = std::make_shared<
|
||||||
|
|
Loading…
Add table
Reference in a new issue