aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/mod/ModFolderModel.h
diff options
context:
space:
mode:
authorflow <flowlnlnln@gmail.com>2022-08-13 11:58:39 -0300
committerflow <flowlnlnln@gmail.com>2022-08-20 10:49:54 -0300
commite2ab2aea32b6d48ee0c9f90442ed53c47e2e7d96 (patch)
tree76c2c9cb6ea122f497aee22e844500ae1037c84d /launcher/minecraft/mod/ModFolderModel.h
parentc3ceefbafbbeb3d31630ef329405ebaacdf9fce5 (diff)
downloadPrismLauncher-e2ab2aea32b6d48ee0c9f90442ed53c47e2e7d96.tar.gz
PrismLauncher-e2ab2aea32b6d48ee0c9f90442ed53c47e2e7d96.tar.bz2
PrismLauncher-e2ab2aea32b6d48ee0c9f90442ed53c47e2e7d96.zip
change: add enable/disable to resources
TIL that zip resource packs, when disabled, actually have the effect of not showing up in the game at all. Since this can be useful to someone, I moved the logic for it to the resources. Signed-off-by: flow <flowlnlnln@gmail.com>
Diffstat (limited to 'launcher/minecraft/mod/ModFolderModel.h')
-rw-r--r--launcher/minecraft/mod/ModFolderModel.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/launcher/minecraft/mod/ModFolderModel.h b/launcher/minecraft/mod/ModFolderModel.h
index 7fe830c2..c33195ed 100644
--- a/launcher/minecraft/mod/ModFolderModel.h
+++ b/launcher/minecraft/mod/ModFolderModel.h
@@ -77,7 +77,6 @@ public:
ModFolderModel(const QString &dir, bool is_indexed = false);
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
- bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole) override;
QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override;
int columnCount(const QModelIndex &parent) const override;
@@ -91,9 +90,6 @@ public:
/// Deletes all the selected mods
bool deleteMods(const QModelIndexList &indexes);
- /// Enable or disable listed mods
- bool setModStatus(const QModelIndexList &indexes, ModStatusAction action);
-
bool isValid();
bool startWatching() override;
@@ -111,9 +107,6 @@ slots:
void onUpdateSucceeded() override;
void onParseSucceeded(int ticket, QString resource_id) override;
-private:
- bool setModStatus(int index, ModStatusAction action);
-
protected:
bool m_is_indexed;
bool m_first_folder_load = true;