aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/mod/ModFolderModel.h
diff options
context:
space:
mode:
authorflow <flowlnlnln@gmail.com>2022-08-09 12:56:38 -0300
committerflow <flowlnlnln@gmail.com>2022-08-20 10:46:33 -0300
commitaf2cf2734da211d443b3046fb0f9733f101d9d9d (patch)
tree2f9ff8707d781a8bbd1f30c5a5ccec3422481e8e /launcher/minecraft/mod/ModFolderModel.h
parentec62d8e97334d3b5a30cea00858e7035468f3609 (diff)
downloadPrismLauncher-af2cf2734da211d443b3046fb0f9733f101d9d9d.tar.gz
PrismLauncher-af2cf2734da211d443b3046fb0f9733f101d9d9d.tar.bz2
PrismLauncher-af2cf2734da211d443b3046fb0f9733f101d9d9d.zip
refactor: move things around in the mod model
Makes the method order in the cpp file the same as in the header file. Signed-off-by: flow <flowlnlnln@gmail.com>
Diffstat (limited to 'launcher/minecraft/mod/ModFolderModel.h')
-rw-r--r--launcher/minecraft/mod/ModFolderModel.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/launcher/minecraft/mod/ModFolderModel.h b/launcher/minecraft/mod/ModFolderModel.h
index a90457d5..ea9f0000 100644
--- a/launcher/minecraft/mod/ModFolderModel.h
+++ b/launcher/minecraft/mod/ModFolderModel.h
@@ -85,15 +85,14 @@ public:
[[nodiscard]] Task* createUpdateTask() override;
[[nodiscard]] Task* createParseTask(Resource const&) override;
- // Alias for old code, consider those deprecated and don't use in new code :gun:
bool installMod(QString file_path) { return ResourceFolderModel::installResource(file_path); }
- void disableInteraction(bool disabled) { ResourceFolderModel::enableInteraction(!disabled); }
-
bool uninstallMod(const QString& filename, bool preserve_metadata = false);
/// Deletes all the selected mods
bool deleteMods(const QModelIndexList &indexes);
+ void disableInteraction(bool disabled) { ResourceFolderModel::enableInteraction(!disabled); }
+
/// Enable or disable listed mods
bool setModStatus(const QModelIndexList &indexes, ModStatusAction action);