Skip to content

Commit

Permalink
frontend-tools: Correctly pass settings to modified cb on reload
Browse files Browse the repository at this point in the history
  • Loading branch information
Penwy authored and RytoEX committed Nov 19, 2024
1 parent b71f439 commit ca342c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions UI/frontend-plugins/frontend-tools/scripts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit ca342c2

Please sign in to comment.