UI: Fix case where cef func may not be present

Due to a particular... plugin we all know and love, the new
QCefWidget::executeJavascript() function may not actually be present as
it should be. So, we have to verify that it's available, and only use it
in that case.
This commit is contained in:
Lain committed 2023-08-05 04:35:31 -07:00
1 parent c946090203
commit 78cb2aa361
6 files changed
+12 -8

No files matched your search

+2 -2
View File
@@ -771,7 +771,7 @@ void OBSBasicSettings::on_connectAccount_clicked()
if (!!auth) {
OnAuthConnected();
#ifdef YOUTUBE_ENABLED
if (cef && IsYouTubeService(service)) {
if (cef_js_avail && IsYouTubeService(service)) {
if (!main->GetYouTubeAppDock()) {
main->NewYouTubeAppDock();
}
@@ -822,7 +822,7 @@ void OBSBasicSettings::on_disconnectAccount_clicked()
ui->connectedAccountText->setVisible(false);
#ifdef YOUTUBE_ENABLED
if (cef && IsYouTubeService(service)) {
if (cef_js_avail && IsYouTubeService(service)) {
if (!main->GetYouTubeAppDock()) {
main->NewYouTubeAppDock();
}