feat+fix: cache versions and extra info in Modrinth packs

When you change a copy thinking you're changing the original data smh

Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
flow
2022-06-24 09:02:58 -03:00
parent 4bfc445cf8
commit 0ec4ade683
3 changed files with 31 additions and 6 deletions

View File

@ -64,6 +64,7 @@ class ModpackListModel : public QAbstractListModel {
/* Retrieve information from the model at a given index with the given role */
auto data(const QModelIndex& index, int role) const -> QVariant override;
bool setData(const QModelIndex &index, const QVariant &value, int role) override;
inline void setActiveJob(NetJob::Ptr ptr) { jobPtr = ptr; }