Merge pull request #1027 from SuslikV/patch-2

UI: Add missing option to context menu
master
Jim 2017-09-15 04:13:28 -07:00 committed by GitHub
commit dcd3e627c2
1 changed files with 13 additions and 0 deletions

View File

@ -2327,12 +2327,25 @@ void OBSBasic::VolControlContextMenu()
void OBSBasic::on_mixerScrollArea_customContextMenuRequested()
{
QAction unhideAllAction(QTStr("UnhideAll"), this);
QAction advPropAction(QTStr("Basic.MainMenu.Edit.AdvAudio"), this);
/* ------------------- */
connect(&unhideAllAction, &QAction::triggered,
this, &OBSBasic::UnhideAllAudioControls,
Qt::DirectConnection);
connect(&advPropAction, &QAction::triggered,
this, &OBSBasic::on_actionAdvAudioProperties_triggered,
Qt::DirectConnection);
/* ------------------- */
QMenu popup(this);
popup.addAction(&unhideAllAction);
popup.addSeparator();
popup.addAction(&advPropAction);
popup.exec(QCursor::pos());
}