浏览代码

UI: Fix compile error when obs-browser disabled

bin 2 年之前
父节点
当前提交
27981b15e9
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      UI/update/shared-update.cpp

+ 2 - 0
UI/update/shared-update.cpp

@@ -15,10 +15,12 @@
 #include <QByteArray>
 #include <QString>
 
+#ifdef BROWSER_AVAILABLE
 #include <browser-panel.hpp>
 
 struct QCef;
 extern QCef *cef;
+#endif
 
 #ifndef MAC_WHATSNEW_URL
 #define MAC_WHATSNEW_URL "https://obsproject.com/update_studio/whatsnew.json"