mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
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:
@@ -592,6 +592,7 @@ bool OBSApp::OBSInit()
|
||||
config_save(globalConfig);
|
||||
}
|
||||
|
||||
obs_startup(locale.c_str());
|
||||
mainWindow = new OBSBasic();
|
||||
|
||||
mainWindow->setAttribute(Qt::WA_DeleteOnClose, true);
|
||||
|
||||
Reference in New Issue
Block a user