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

Method instanceActivated

launcher/ui/MainWindow.cpp:2166–2176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2164}
2165
2166void MainWindow::instanceActivated(QModelIndex index)
2167{
2168 if (!index.isValid())
2169 return;
2170 QString id = index.data(InstanceList::InstanceIDRole).toString();
2171 InstancePtr inst = APPLICATION->instances()->getInstanceById(id);
2172 if (!inst)
2173 return;
2174
2175 activateInstance(inst);
2176}
2177
2178void MainWindow::on_actionLaunchInstance_triggered()
2179{

Callers

nothing calls this directly

Calls 5

getInstanceByIdMethod · 0.80
instancesMethod · 0.80
isValidMethod · 0.45
toStringMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected