frontend-tools: Disable properties deferring in script dialog

Prevents scripts from being able to defer their settings in the
properties view (because there's nothing to really defer to).
This commit is contained in:
Lain 2023-08-03 16:28:00 -07:00
parent 2a2472e326
commit 9d2715fe72

View file

@ -529,10 +529,14 @@ void ScriptsTool::on_scripts_currentRowChanged(int row)
OBSDataAutoRelease settings = obs_script_get_settings(script);
propertiesView = new OBSPropertiesView(
OBSPropertiesView *view = new OBSPropertiesView(
settings.Get(), script,
(PropertiesReloadCallback)obs_script_get_properties, nullptr,
(PropertiesVisualUpdateCb)obs_script_update);
view->SetDeferrable(false);
propertiesView = view;
ui->propertiesLayout->addWidget(propertiesView);
ui->description->setText(obs_script_get_description(script));
}