mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-03 21:54:05 +02:00
Add error message for webview without OpenGL
This commit is contained in:
parent
ae7bd7112b
commit
20fb73b626
2 changed files with 3 additions and 0 deletions
|
@ -3989,6 +3989,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
"lng_payments_webview_no_use" = "Unfortunately, you can't use payments with current system configuration.";
|
||||
"lng_payments_webview_install_edge" = "Please install {link}.";
|
||||
"lng_payments_webview_install_webkit" = "Please install WebKitGTK (webkit2gtk-4.1/webkit2gtk-4.0) using your package manager.";
|
||||
"lng_payments_webview_enable_opengl" = "Please enable OpenGL in application settings.";
|
||||
"lng_payments_webview_update_windows" = "Please update your system to Windows 8.1 or later.";
|
||||
"lng_payments_sure_close" = "Are you sure you want to close this payment form? The changes you made will be lost.";
|
||||
"lng_payments_receipt_label" = "Receipt";
|
||||
|
|
|
@ -1603,6 +1603,8 @@ TextWithEntities ErrorText(const Webview::Available &info) {
|
|||
Ui::Text::WithEntities);
|
||||
case Error::NoWebKitGTK:
|
||||
return { tr::lng_payments_webview_install_webkit(tr::now) };
|
||||
case Error::NoOpenGL:
|
||||
return { tr::lng_payments_webview_enable_opengl(tr::now) };
|
||||
case Error::OldWindows:
|
||||
return { tr::lng_payments_webview_update_windows(tr::now) };
|
||||
default:
|
||||
|
|
Loading…
Add table
Reference in a new issue