mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-20 05:01:51 -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:
1 parent
c946090203
commit
78cb2aa361
6 files changed
+12
-8
No files matched your search
@@ -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