feat: add ctrl + r shortcut to reload all connections

This commit is contained in:
Refuhr
2026-07-07 15:41:37 +02:00
parent 137508392a
commit d94537d00c
3 changed files with 28 additions and 6 deletions
+5
View File
@@ -11,6 +11,7 @@
#include "filterutility.h"
#include <QClipboard>
#include <QShortcut>
/*
Some notes on things I'd like to put into the program but haven't put on github (yet)
@@ -231,6 +232,10 @@ MainWindow::MainWindow(QWidget *parent) :
connectionWindow = new ConnectionWindow();
connect(this, SIGNAL(suspendCapturing(bool)), connectionWindow, SLOT(setSuspendAll(bool)));
//Ctrl+R reloads (resets) all connections, as if resetting each device in the connection window.
QShortcut *reloadConnShortcut = new QShortcut(QKeySequence(tr("Ctrl+R")), this);
connect(reloadConnShortcut, &QShortcut::activated, connectionWindow, &ConnectionWindow::resetAllConnections);
//these either are unfinished/not working or are not for general use. But,they exist
//so if you want to enable them and play with them then go for it.
//ui->actionFirmware_Update->setVisible(false);