mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-04 08:25:38 +00:00
Handle alert/confirm/prompt with custom dialog on Linux.
This commit is contained in:
@@ -52,8 +52,9 @@ Launcher::Launcher(int argc, char *argv[])
|
|||||||
|
|
||||||
int Launcher::exec() {
|
int Launcher::exec() {
|
||||||
for (auto i = begin(_arguments), e = end(_arguments); i != e; ++i) {
|
for (auto i = begin(_arguments), e = end(_arguments); i != e; ++i) {
|
||||||
if (*i == "-webviewhelper" && std::distance(i, e) > 1) {
|
if (*i == "-webviewhelper" && std::distance(i, e) > 2) {
|
||||||
Webview::WebKit2Gtk::SetSocketPath(*(i + 1));
|
Webview::WebKit2Gtk::SetDebug(*(i + 1));
|
||||||
|
Webview::WebKit2Gtk::SetSocketPath(*(i + 2));
|
||||||
return Webview::WebKit2Gtk::Exec();
|
return Webview::WebKit2Gtk::Exec();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Submodule Telegram/lib_webview updated: 318ab62e09...9083cb0f16
Reference in New Issue
Block a user