| 36 | } |
| 37 | |
| 38 | void PythonScriptManagerState::setScripts(const std::vector<std::filesystem::path>& paths) { |
| 39 | std::uint64_t generation = 0; |
| 40 | { |
| 41 | std::lock_guard lock(mutex_); |
| 42 | scripts_.clear(); |
| 43 | for (const auto& p : paths) { |
| 44 | scripts_.push_back({p, true, false, ""}); |
| 45 | } |
| 46 | generation = ++generation_; |
| 47 | } |
| 48 | publishScriptsGeneration(generation); |
| 49 | } |
| 50 | |
| 51 | void PythonScriptManagerState::setScriptEnabled(size_t index, bool enabled) { |
| 52 | std::uint64_t generation = 0; |
no test coverage detected