From cec8e246303dd1db0adf7ca3d52604cedcdea182 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Sun, 9 May 2021 08:45:08 -0700 Subject: [PATCH] frontend-plugins: Fix script properties not updating Fixes a bug where script properties would not update correctly after the Undo/Redo changes in the properties view. The properties view was using the wrong callback, and had a bad cast. --- 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 0a1fa0ece..d83437f30 100644 --- a/UI/frontend-plugins/frontend-tools/scripts.cpp +++ b/UI/frontend-plugins/frontend-tools/scripts.cpp @@ -504,8 +504,8 @@ void ScriptsTool::on_scripts_currentRowChanged(int row) propertiesView = new OBSPropertiesView( settings, script, - (PropertiesReloadCallback)obs_script_get_properties, - (PropertiesUpdateCallback)obs_script_update); + (PropertiesReloadCallback)obs_script_get_properties, nullptr, + (PropertiesVisualUpdateCb)obs_script_update); ui->propertiesLayout->addWidget(propertiesView); ui->description->setText(obs_script_get_description(script)); }