Browse Source

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 năm trước cách đây
mục cha
commit
9d2715fe72
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 5 1
      UI/frontend-plugins/frontend-tools/scripts.cpp

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