MCPcopy Create free account
hub / github.com/BernardoGiordano/Checkpoint / setLayerLabel

Method setLayerLabel

common/script/scriptconsole.cpp:168–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166}
167
168void ScriptConsole::setLayerLabel(size_t layer, std::string label)
169{
170 if (layer >= MAX_LAYERS) {
171 return;
172 }
173 std::lock_guard<std::mutex> lock(mMutex);
174 // Not gated on `active`: relabelling an idle bar is how a script says what
175 // the pause between items is for.
176 mLayers[layer].label = std::move(label);
177}
178
179void ScriptConsole::endLayer(size_t layer)
180{

Callers 1

ckpt_progress_labelFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected