mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
frontend: Use signal to update log viewer
Instead of calling the log viewer directly, use a signal instead.
This commit is contained in:
+5
-2
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user