| 66 | }; |
| 67 | |
| 68 | PackProfile::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 | |
| 80 | PackProfile::~PackProfile() |
| 81 | { |
nothing calls this directly
no test coverage detected