MCPcopy Create free account
hub / github.com/MeisApps/pcbu-desktop / LoadLogs

Method LoadLogs

desktop/src/ui/LogsWindow.cpp:13–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11}
12
13void LogsWindow::LoadLogs(QObject *window) {
14 if(m_LoadThread.joinable())
15 m_LoadThread.join();
16 m_LoadThread = std::thread([window]() {
17 spdlog::default_logger()->flush();
18 auto desktopLogs = Shell::ReadBytes(AppSettings::GetBaseDir() / "desktop.log");
19 auto moduleLogs = Shell::ReadBytes(AppSettings::GetBaseDir() / "module.log");
20 QMetaObject::invokeMethod(window, "setLogs", Q_ARG(QVariant, QString::fromUtf8(desktopLogs)), Q_ARG(QVariant, QString::fromUtf8(moduleLogs)));
21 });
22}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected