浏览代码

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.
jp9000 4 年之前
父节点
当前提交
cec8e24630
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      UI/frontend-plugins/frontend-tools/scripts.cpp

+ 2 - 2
UI/frontend-plugins/frontend-tools/scripts.cpp

@@ -504,8 +504,8 @@ void ScriptsTool::on_scripts_currentRowChanged(int row)
 
 
 	propertiesView = new OBSPropertiesView(
 	propertiesView = new OBSPropertiesView(
 		settings, script,
 		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->propertiesLayout->addWidget(propertiesView);
 	ui->description->setText(obs_script_get_description(script));
 	ui->description->setText(obs_script_get_description(script));
 }
 }