| 38 | } |
| 39 | |
| 40 | std::optional<AppNode> AppItemModel::findByNodeId(uint32_t id) |
| 41 | { |
| 42 | for(int i = 0; i < cache.count(); i++) |
| 43 | { |
| 44 | if(cache.at(i).id == id) |
| 45 | { |
| 46 | return cache.at(i); |
| 47 | } |
| 48 | } |
| 49 | return std::nullopt; |
| 50 | } |
| 51 | |
| 52 | void AppItemModel::onAppAdded(const AppNode &node) |
| 53 | { |
no test coverage detected