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

Method clearErrors

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

Source from the content-addressed store, hash-verified

77 }
78
79 void PythonScriptManagerState::clearErrors() {
80 std::uint64_t generation = 0;
81 {
82 std::lock_guard lock(mutex_);
83 bool changed = false;
84 for (auto& s : scripts_) {
85 if (s.has_error || !s.error_message.empty()) {
86 s.has_error = false;
87 s.error_message.clear();
88 changed = true;
89 }
90 }
91 if (changed) {
92 generation = ++generation_;
93 }
94 }
95 publishScriptsGeneration(generation);
96 }
97
98 void PythonScriptManagerState::clear() {
99 std::uint64_t generation = 0;

Callers 1

register_scriptsFunction · 0.80

Calls 3

publishScriptsGenerationFunction · 0.85
emptyMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected