mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-07-27 15:46:13 -04:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user