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

Method runningStateChanged

launcher/ui/pages/instance/ServersPage.cpp:666–682  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

664}
665
666void ServersPage::runningStateChanged(bool running)
667{
668 if(m_locked == running)
669 {
670 return;
671 }
672 m_locked = running;
673 if(m_locked)
674 {
675 m_model->lock();
676 }
677 else
678 {
679 m_model->unlock();
680 }
681 updateState();
682}
683
684void ServersPage::currentChanged(const QModelIndex &current, const QModelIndex &previous)
685{

Callers

nothing calls this directly

Calls 2

lockMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected