New upstream version 24.0.1+dfsg1
This commit is contained in:
parent
b14f9eae6d
commit
5a730d6ec3
842 changed files with 42245 additions and 33385 deletions
20
UI/window-dock-browser.cpp
Normal file
20
UI/window-dock-browser.cpp
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#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();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue