UI: Add frontend event for when OBS finishes loading
This commit is contained in:
parent
3caf5d04d3
commit
618a1c5faf
3 changed files with 13 additions and 1 deletions
|
|
@ -1611,9 +1611,17 @@ void OBSBasic::OBSInit()
|
|||
Qt::QueuedConnection,
|
||||
Q_ARG(QString, QT_UTF8(savePath)),
|
||||
Q_ARG(int, 10));
|
||||
#else
|
||||
OnFirstLoad();
|
||||
#endif
|
||||
}
|
||||
|
||||
void OBSBasic::OnFirstLoad()
|
||||
{
|
||||
if (api)
|
||||
api->on_event(OBS_FRONTEND_EVENT_FINISHED_LOADING);
|
||||
}
|
||||
|
||||
void OBSBasic::DeferredLoad(const QString &file, int requeueCount)
|
||||
{
|
||||
if (--requeueCount > 0) {
|
||||
|
|
@ -1626,6 +1634,7 @@ void OBSBasic::DeferredLoad(const QString &file, int requeueCount)
|
|||
|
||||
Load(QT_TO_UTF8(file));
|
||||
RefreshSceneCollections();
|
||||
OnFirstLoad();
|
||||
}
|
||||
|
||||
void OBSBasic::UpdateMultiviewProjectorMenu()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue