mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-19 17:49:14 +00:00
UI: Allow right-clicking mixer sources to bring up menu
Allows bringing up properties/filters/etc via right-clicking mixer items in addition instead of only being able to click the gear icon. Minor QoL improvement.
This commit is contained in:
parent
2ef00ecec4
commit
7bde1eb6af
|
@ -2238,6 +2238,10 @@ void OBSBasic::ActivateAudioSource(OBSSource source)
|
|||
{
|
||||
VolControl *vol = new VolControl(source, true);
|
||||
|
||||
vol->setContextMenuPolicy(Qt::CustomContextMenu);
|
||||
|
||||
connect(vol, &QWidget::customContextMenuRequested,
|
||||
this, &OBSBasic::VolControlContextMenu);
|
||||
connect(vol, &VolControl::ConfigClicked,
|
||||
this, &OBSBasic::VolControlContextMenu);
|
||||
|
||||
|
|
Loading…
Reference in a new issue