Open source properties on double click
This commit is contained in:
parent
eadea9a7e5
commit
1e41dab7b5
2 changed files with 13 additions and 0 deletions
|
|
@ -1745,6 +1745,18 @@ void OBSBasic::on_sources_customContextMenuRequested(const QPoint &pos)
|
|||
popup.exec(QCursor::pos());
|
||||
}
|
||||
|
||||
void OBSBasic::on_sources_itemDoubleClicked(QListWidgetItem *witem)
|
||||
{
|
||||
if (!witem)
|
||||
return;
|
||||
|
||||
OBSSceneItem item = GetSceneItem(witem);
|
||||
OBSSource source = obs_sceneitem_get_source(item);
|
||||
|
||||
if (source)
|
||||
CreatePropertiesWindow(source);
|
||||
}
|
||||
|
||||
void OBSBasic::AddSource(const char *id)
|
||||
{
|
||||
if (id && *id) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue