From 169f2131b5d52230863f208fd1d52cc04c144e83 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Fri, 9 Dec 2022 17:18:28 +0100 Subject: add automation menu bar option working --- confui/mainwindow.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/confui/mainwindow.cpp b/confui/mainwindow.cpp index bc2adee..f5c29ed 100644 --- a/confui/mainwindow.cpp +++ b/confui/mainwindow.cpp @@ -44,7 +44,8 @@ void CDMainWindow::update() { QAction* menu_options_refresh = menu_options->addAction("refresh node list"); connect(menu_options_refresh, &QAction::triggered, this, &CDMainWindow::menu_refresh); - menu_options->addAction("add automation"); + QAction* menu_options_add_automation = menu_options->addAction("add automation"); + connect(menu_options_add_automation, &QAction::triggered, this, &CDMainWindow::menu_add_automation); QMenu* menu_options_serialport = menu_options->addMenu("serial port (FIXME)"); @@ -57,6 +58,7 @@ void CDMainWindow::menu_refresh() { } void CDMainWindow::menu_add_automation() { - + g_cd_mesh_connector->create_link(); + update(); } -- cgit v1.2.3