MCPcopy Create free account
hub / github.com/benkuper/Chataigne / updateAppControlValues

Method updateAppControlValues

Source/Module/modules/system/os/OSModule.cpp:285–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283}
284
285void OSModule::updateAppControlValues()
286{
287 var data = appControlStatusCC.getJSONData();
288 appControlStatusCC.clear();
289
290 for (auto& c : appControlNamesCC.controllables)
291 {
292 File f = ((FileParameter*)c)->getFile();
293 BoolParameter* b = appControlStatusCC.addBoolParameter(f.existsAsFile() ? f.getFileName() : "[noapp]", "Status for this process", false);
294 b->saveValueOnly = false;
295 }
296
297 appControlStatusCC.loadJSONData(data, false); //force reload styles
298
299}
300
301void OSModule::updatePingStatusValues()
302{

Callers

nothing calls this directly

Calls 3

getJSONDataMethod · 0.45
clearMethod · 0.45
loadJSONDataMethod · 0.45

Tested by

no test coverage detected