Add Rescan Devices button to systray icon dialog

This commit is contained in:
Atome “Atom” Art 2025-07-02 01:39:55 +00:00 committed by Adam Honse
parent a31c4f5254
commit fb1c20ed30

View file

@ -1,4 +1,4 @@
/*---------------------------------------------------------*\
/*---------------------------------------------------------*\
| OpenRGBDialog.cpp |
| |
| User interface for OpenRGB main window |
@ -389,6 +389,10 @@ OpenRGBDialog::OpenRGBDialog(QWidget *parent) : QMainWindow(parent), ui(new Ui::
connect(actionLightsOff, SIGNAL(triggered()), this, SLOT(on_LightsOff()));
trayIconMenu->addAction(actionLightsOff);
QAction* actionReScan = new QAction(tr("Rescan Devices"), this);
connect(actionReScan, SIGNAL(triggered()), this, SLOT(on_ButtonRescan_clicked()));
trayIconMenu->addAction(actionReScan);
actionExit = new QAction(tr("Exit"), this );
connect( actionExit, SIGNAL( triggered() ), this, SLOT( on_Exit() ));
trayIconMenu->addAction(actionExit);