| 417 | m_changelogThread = new std::thread(getChangelog, onFetch); |
| 418 | } |
| 419 | void WebAPI::CheckForApplicationUpdates(std::function<void()> onUpdate) |
| 420 | { |
| 421 | Logger::Get().Log("Checking for updates with WebAPI"); |
| 422 | |
| 423 | if (m_updateThread != nullptr && m_updateThread->joinable()) |
| 424 | m_updateThread->join(); |
| 425 | delete m_updateThread; |
| 426 | m_updateThread = new std::thread(checkUpdates, onUpdate); |
| 427 | } |
| 428 | void WebAPI::SearchShaders(const std::string& query, int page, const std::string& sort, const std::string& language, const std::string& owner, bool excludeGodotShaders, bool includeCPPShaders, bool includeRustShaders, std::function<void(const std::vector<ShaderResult>&)> onFetch) |
| 429 | { |
| 430 | Logger::Get().Log("Searching shaders with WebAPI"); |
no test coverage detected