1
0
Эх сурвалжийг харах

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).
Lain 2 жил өмнө
parent
commit
9d2715fe72

+ 5 - 1
UI/frontend-plugins/frontend-tools/scripts.cpp

@@ -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));
 }