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:
parent
c946090203
commit
78cb2aa361
6 changed files with 12 additions and 8 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue