Fix dock location and size not saving correctly

OBS will handle the docking position / window size and position as long
as an object name is set
This commit is contained in:
WarmUpTill
2022-01-21 19:36:07 +01:00
committed by WarmUpTill
parent 9eb7f58525
commit fda9b1c3ea
4 changed files with 14 additions and 31 deletions

View File

@@ -662,10 +662,7 @@ extern "C" void InitSceneSwitcher()
// Windows does not require the plugins to be loaded manually
LoadPlugins();
#endif
dock = new StatusDock(
static_cast<QMainWindow *>(obs_frontend_get_main_window()));
obs_frontend_add_dock(dock);
SetupDock();
auto cb = []() {
if (switcher->settingsWindowOpened) {