| 11 | } |
| 12 | |
| 13 | void 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected