diff options
author | Rachel Powers <508861+Ryex@users.noreply.github.com> | 2023-04-29 19:38:51 -0700 |
---|---|---|
committer | Rachel Powers <508861+Ryex@users.noreply.github.com> | 2023-04-29 19:55:37 -0700 |
commit | d80dee2a54a172fa19c0bc21486ee43ef2e3514d (patch) | |
tree | a0f83a672ba25a09e60678466aca4c52968becb0 /launcher/minecraft/mod/ResourcePackFolderModel.h | |
parent | 788fa40c2ae0e9786c070f4593a4e7ff6efc77d3 (diff) | |
download | PrismLauncher-d80dee2a54a172fa19c0bc21486ee43ef2e3514d.tar.gz PrismLauncher-d80dee2a54a172fa19c0bc21486ee43ef2e3514d.tar.bz2 PrismLauncher-d80dee2a54a172fa19c0bc21486ee43ef2e3514d.zip |
refactor: pass instance ptr to resource models. use it to find instance root.
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
Diffstat (limited to 'launcher/minecraft/mod/ResourcePackFolderModel.h')
-rw-r--r-- | launcher/minecraft/mod/ResourcePackFolderModel.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/launcher/minecraft/mod/ResourcePackFolderModel.h b/launcher/minecraft/mod/ResourcePackFolderModel.h index cb620ce2..66d5a074 100644 --- a/launcher/minecraft/mod/ResourcePackFolderModel.h +++ b/launcher/minecraft/mod/ResourcePackFolderModel.h @@ -17,7 +17,7 @@ public: NUM_COLUMNS }; - explicit ResourcePackFolderModel(const QString &dir); + explicit ResourcePackFolderModel(const QString &dir, std::shared_ptr<const BaseInstance> instance); [[nodiscard]] QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override; |