mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-04-11 17:38:31 -04:00
Setting Object name for QAction "Lights Off" to resolve #1594
* Setting object name allows SIGNAL / SLOT connection for plugins Amended action name to PascalCase (ActionLightsOff) for plugin API consistency. Commit amended by Adam Honse <calcprogrammer1@gmail.com>
This commit is contained in:
@@ -341,6 +341,7 @@ OpenRGBDialog2::OpenRGBDialog2(QWidget *parent) : QMainWindow(parent), ui(new Op
|
||||
trayIconMenu->addMenu(quickColorsMenu);
|
||||
|
||||
QAction* actionLightsOff = new QAction("Lights Off", this);
|
||||
actionLightsOff->setObjectName("ActionLightsOff");
|
||||
connect(actionLightsOff, SIGNAL(triggered()), this, SLOT(on_LightsOff()));
|
||||
trayIconMenu->addAction(actionLightsOff);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user