From ca342c249105a7eee632e1f095f36b6f05884b93 Mon Sep 17 00:00:00 2001 From: Penwywern Date: Sat, 9 Nov 2024 09:59:45 +0100 Subject: [PATCH] frontend-tools: Correctly pass settings to modified cb on reload --- UI/frontend-plugins/frontend-tools/scripts.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UI/frontend-plugins/frontend-tools/scripts.cpp b/UI/frontend-plugins/frontend-tools/scripts.cpp index b3e7c9c98bb8c2..08e5bdd35c314d 100644 --- a/UI/frontend-plugins/frontend-tools/scripts.cpp +++ b/UI/frontend-plugins/frontend-tools/scripts.cpp @@ -245,7 +245,7 @@ void ScriptsTool::ReloadScript(const char *path) if (strcmp(script_path, path) == 0) { obs_script_reload(script); - OBSDataAutoRelease settings = obs_data_create(); + OBSDataAutoRelease settings = obs_script_get_settings(script); obs_properties_t *prop = obs_script_get_properties(script); obs_properties_apply_settings(prop, settings); @@ -349,7 +349,7 @@ void ScriptsTool::on_addScripts_clicked() item->setData(Qt::UserRole, QString(file)); ui->scripts->addItem(item); - OBSDataAutoRelease settings = obs_data_create(); + OBSDataAutoRelease settings = obs_script_get_settings(script); obs_properties_t *prop = obs_script_get_properties(script); obs_properties_apply_settings(prop, settings);