diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-12-09 17:18:28 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-12-09 17:18:28 +0100 |
commit | 169f2131b5d52230863f208fd1d52cc04c144e83 (patch) | |
tree | 7d3f9971ce7f72a4837704e84dc3ab3641e170d0 /confui/mainwindow.cpp | |
parent | 23a526da7143e2464aa1416d46d2d94b04e89b11 (diff) |
add automation menu bar option working
Diffstat (limited to 'confui/mainwindow.cpp')
-rw-r--r-- | confui/mainwindow.cpp | 6 |
1 files 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(); } |