mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-19 17:49:14 +00:00
UI: Open properties on user source creation
Every time I created a source I found myself in need to actually open up the properties. It was getting somewhat on my nerves, so I decided to just make it automatically pop up when the source is created.
This commit is contained in:
parent
dfabbf7936
commit
85ee5d591b
|
@ -511,6 +511,8 @@ void OBSBasic::OBSInit()
|
|||
|
||||
Load(savePath);
|
||||
ResetAudioDevices();
|
||||
|
||||
loaded = true;
|
||||
}
|
||||
|
||||
OBSBasic::~OBSBasic()
|
||||
|
@ -579,6 +581,14 @@ void OBSBasic::InsertSceneItem(obs_sceneitem_t item)
|
|||
QVariant::fromValue(OBSSceneItem(item)));
|
||||
|
||||
ui->sources->insertItem(0, listItem);
|
||||
ui->sources->setCurrentRow(0);
|
||||
|
||||
/* if the source was just created, open properties dialog */
|
||||
if (sourceSceneRefs[source] == 0 && loaded) {
|
||||
delete properties;
|
||||
properties = new OBSBasicProperties(this, source);
|
||||
properties->Init();
|
||||
}
|
||||
}
|
||||
|
||||
/* Qt callbacks for invokeMethod */
|
||||
|
|
|
@ -53,6 +53,8 @@ private:
|
|||
|
||||
std::vector<VolControl*> volumes;
|
||||
|
||||
bool loaded = false;
|
||||
|
||||
QPointer<OBSBasicProperties> properties;
|
||||
QPointer<OBSBasicTransform> transformWindow;
|
||||
|
||||
|
|
Loading…
Reference in a new issue