UI: Move obs startup/shutdown to obs-app.cpp

Now that we aren't dependent upon a window for our context, we can
safely move the obs context creation/destruction to obs-app.cpp, and use
the OBSContext helper class to automatically shut down obs.
This commit is contained in:
jp9000
2015-08-05 01:07:22 -07:00
parent 04e4ca1d53
commit 1722425f22
3 changed files with 3 additions and 4 deletions
+1
View File
@@ -592,6 +592,7 @@ bool OBSApp::OBSInit()
config_save(globalConfig);
}
obs_startup(locale.c_str());
mainWindow = new OBSBasic();
mainWindow->setAttribute(Qt::WA_DeleteOnClose, true);