| 145 | } |
| 146 | |
| 147 | void LuaFunctionList::switchForFile(int row, bool active) |
| 148 | { |
| 149 | fileList[row].enabled = active; |
| 150 | const std::filesystem::path& file = fileList[row].file; |
| 151 | for (auto& nlf : functions) { |
| 152 | if (0 == file.compare(nlf.file)) { |
| 153 | nlf.active = active; |
| 154 | } |
| 155 | } |
| 156 | } |
| 157 | |
| 158 | bool LuaFunctionList::call(NamedLuaFunction::CallbackType c) |
| 159 | { |