From ebc2d4ab11be9287ab5cc4655e6e14a75d0c8787 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Sun, 4 Jan 2015 08:16:59 -0800 Subject: [PATCH] UI: Implement SaveProject function --- obs/window-basic-main.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/obs/window-basic-main.cpp b/obs/window-basic-main.cpp index e15c80856..bc5df656b 100644 --- a/obs/window-basic-main.cpp +++ b/obs/window-basic-main.cpp @@ -597,9 +597,7 @@ void OBSBasic::OBSInit() OBSBasic::~OBSBasic() { - BPtr savePath(os_get_config_path("obs-studio/basic/scenes.json")); - SaveService(); - Save(savePath); + SaveProject(); /* XXX: any obs data must be released before calling obs_shutdown. * currently, we can't automate this with C++ RAII because of the @@ -638,6 +636,13 @@ OBSBasic::~OBSBasic() config_save(App()->GlobalConfig()); } +void OBSBasic::SaveProject() +{ + BPtr savePath(os_get_config_path("obs-studio/basic/scenes.json")); + SaveService(); + Save(savePath); +} + OBSScene OBSBasic::GetCurrentScene() { QListWidgetItem *item = ui->scenes->currentItem();