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

Method PackProfile

launcher/minecraft/PackProfile.cpp:68–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66};
67
68PackProfile::PackProfile(MinecraftInstance * instance)
69 : QAbstractListModel()
70{
71 d.reset(new PackProfileData);
72 d->m_instance = instance;
73 d->m_saveTimer.setSingleShot(true);
74 d->m_saveTimer.setInterval(5000);
75 d->interactionDisabled = instance->isRunning();
76 connect(d->m_instance, &BaseInstance::runningStatusChanged, this, &PackProfile::disableInteraction);
77 connect(&d->m_saveTimer, &QTimer::timeout, this, &PackProfile::save_internal);
78}
79
80PackProfile::~PackProfile()
81{

Callers

nothing calls this directly

Calls 3

setIntervalMethod · 0.80
resetMethod · 0.45
isRunningMethod · 0.45

Tested by

no test coverage detected