yolobs-studio/UI/window-dock-browser.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
369 B
C++
Raw Normal View History

2019-09-22 21:19:10 +00:00
#include "window-dock-browser.hpp"
#include <QCloseEvent>
void BrowserDock::closeEvent(QCloseEvent *event)
{
OBSDock::closeEvent(event);
if (!event->isAccepted()) {
return;
}
static int panel_version = -1;
if (panel_version == -1) {
panel_version = obs_browser_qcef_version();
}
if (panel_version >= 2 && !!cefWidget) {
cefWidget->closeBrowser();
}
}