mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-25 23:38:47 -04:00
UI: Add frontend event for when OBS finishes loading
This commit is contained in:
1 parent
3caf5d04d3
commit
618a1c5faf
3 files changed
+13
-1
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user