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

Method on_btnKillMinecraft_clicked

launcher/ui/InstanceWindow.cpp:238–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236}
237
238void InstanceWindow::on_btnKillMinecraft_clicked()
239{
240 if(m_instance->isRunning())
241 {
242 APPLICATION->kill(m_instance);
243 }
244 else
245 {
246 APPLICATION->launch(m_instance, true, false, nullptr);
247 }
248}
249
250QString InstanceWindow::instanceId()
251{

Callers

nothing calls this directly

Calls 3

launchMethod · 0.65
isRunningMethod · 0.45
killMethod · 0.45

Tested by

no test coverage detected