MCPcopy Create free account
hub / github.com/KikoPlayProject/KikoPlay / refresh

Method refresh

Extension/Script/scriptmodel.cpp:83–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83void ScriptModel::refresh()
84{
85 beginResetModel();
86 scriptList.clear();
87 for(int i=0;i<ScriptType::UNKNOWN_STYPE;++i)
88 {
89 auto type = ScriptType(i);
90 for(const auto &s: GlobalObjects::scriptManager->scripts(type))
91 {
92 scriptList.append({type, s->id(), s->name(), s->version(), s->desc(), s->getValue("path"), !s->settings().empty(), !s->getScriptMenuItems().empty()});
93 }
94 }
95 endResetModel();
96}
97
98void ScriptProxyModel::setType(int type)
99{

Callers

nothing calls this directly

Calls 9

ScriptTypeEnum · 0.85
clearMethod · 0.45
appendMethod · 0.45
idMethod · 0.45
nameMethod · 0.45
versionMethod · 0.45
descMethod · 0.45
getValueMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected