UI: Fix bug where stats dock steals focus of main windows

master
Bennik2000 2020-05-11 22:43:54 +02:00
parent 63cbcc5dcc
commit b04ace4901
1 changed files with 4 additions and 0 deletions

View File

@ -1855,6 +1855,8 @@ void OBSBasic::OBSInit()
OnFirstLoad(); OnFirstLoad();
activateWindow();
#ifdef __APPLE__ #ifdef __APPLE__
QMetaObject::invokeMethod(this, "DeferredSysTrayLoad", QMetaObject::invokeMethod(this, "DeferredSysTrayLoad",
Qt::QueuedConnection, Q_ARG(int, 10)); Qt::QueuedConnection, Q_ARG(int, 10));
@ -6930,6 +6932,8 @@ void OBSBasic::on_resetUI_triggered()
resizeDocks(docks, {cy, cy, cy, cy, cy}, Qt::Vertical); resizeDocks(docks, {cy, cy, cy, cy, cy}, Qt::Vertical);
resizeDocks(docks, sizes, Qt::Horizontal); resizeDocks(docks, sizes, Qt::Horizontal);
#endif #endif
activateWindow();
} }
void OBSBasic::on_lockUI_toggled(bool lock) void OBSBasic::on_lockUI_toggled(bool lock)