From b155a5fa4b97f6f5f63f7079c671b5965db9d022 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Fri, 6 Jan 2023 15:29:26 +0100 Subject: send POST_LINK --- confui/ui_automation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'confui/ui_automation.cpp') diff --git a/confui/ui_automation.cpp b/confui/ui_automation.cpp index eb6e1f6..2ade734 100644 --- a/confui/ui_automation.cpp +++ b/confui/ui_automation.cpp @@ -74,11 +74,11 @@ void CDAutomationWidget::apply() { if (!conf_valid()) return; _automation->button = g_cd_mesh_connector->get_node(dropdown_button->findData(dropdown_button->currentIndex())); - _automation->type = (enum cd_e_automation_type)dropdown_action->findData(dropdown_action->currentIndex()); + _automation->type = (cd_e_automation_type) dropdown_action->findData(dropdown_action->currentIndex()); _automation->light = g_cd_mesh_connector->get_node(dropdown_light->findData(dropdown_light->currentIndex())); _automation->valid = true; - g_cd_mesh_connector->update_link(_automation); + g_cd_mesh_connector->update_link(_automation, true); } void CDAutomationWidget::remove() { -- cgit v1.2.3