frontend: Use signal to update log viewer

Instead of calling the log viewer directly, use a signal instead.
This commit is contained in:
cg2121
2025-08-23 12:13:39 -04:00
committed by Ryan Foster
parent 31574b416f
commit 4b403d2a3e
4 changed files with 13 additions and 12 deletions
+5 -2
View File
@@ -74,8 +74,6 @@ extern bool opt_disable_missing_files_check;
extern string opt_starting_collection;
extern string opt_starting_profile;
extern QPointer<OBSLogViewer> obsLogViewer;
#ifndef _WIN32
int OBSApp::sigintFd[2];
#endif
@@ -1757,3 +1755,8 @@ void OBSApp::applicationShutdown() noexcept
libobs_initialized = false;
}
}
void OBSApp::addLogLine(int logLevel, const QString &message)
{
emit logLineAdded(logLevel, message);
}