mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 06:07:06 +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)) {
|
||||
return false;
|
||||
}
|
||||
UrlClickHandler::Open(local, {});
|
||||
close();
|
||||
crl::on_main([=] {
|
||||
UrlClickHandler::Open(local, {});
|
||||
});
|
||||
return true;
|
||||
};
|
||||
const auto panel = std::make_shared<
|
||||
|
|
Loading…
Add table
Reference in a new issue