MCPcopy Create free account
hub / github.com/MrNeRF/LichtFeld-Studio / setScripts

Method setScripts

src/visualizer/gui/panels/python_scripts_panel.cpp:38–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;

Callers 3

runHeadlessWithTCPFunction · 0.80
runHeadlessFunction · 0.80
runGuiFunction · 0.80

Calls 3

publishScriptsGenerationFunction · 0.85
clearMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected