MCPcopy Create free account
hub / github.com/MultiMC/Launcher / on_actionLaunchInstance_triggered

Method on_actionLaunchInstance_triggered

launcher/ui/MainWindow.cpp:1831–1845  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1829}
1830
1831void MainWindow::on_actionLaunchInstance_triggered()
1832{
1833 if (!m_selectedInstance)
1834 {
1835 return;
1836 }
1837 if(m_selectedInstance->isRunning())
1838 {
1839 APPLICATION->kill(m_selectedInstance);
1840 }
1841 else
1842 {
1843 APPLICATION->launch(m_selectedInstance);
1844 }
1845}
1846
1847void MainWindow::activateInstance(InstancePtr instance)
1848{

Callers

nothing calls this directly

Calls 3

launchMethod · 0.65
isRunningMethod · 0.45
killMethod · 0.45

Tested by

no test coverage detected