MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / getInstanceByManagedName

Method getInstanceByManagedName

launcher/InstanceList.cpp:538–549  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

536}
537
538InstancePtr InstanceList::getInstanceByManagedName(const QString& managed_name) const
539{
540 if (managed_name.isEmpty())
541 return {};
542
543 for (auto instance : m_instances) {
544 if (instance->getManagedPackName() == managed_name)
545 return instance;
546 }
547
548 return {};
549}
550
551QModelIndex InstanceList::getInstanceIndexById(const QString &id) const
552{

Callers 2

updateInstanceMethod · 0.80
updateInstanceMethod · 0.80

Calls 2

isEmptyMethod · 0.80
getManagedPackNameMethod · 0.80

Tested by

no test coverage detected