From af2cf2734da211d443b3046fb0f9733f101d9d9d Mon Sep 17 00:00:00 2001 From: flow Date: Tue, 9 Aug 2022 12:56:38 -0300 Subject: 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 --- launcher/minecraft/mod/ModFolderModel.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'launcher/minecraft/mod/ModFolderModel.h') 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); -- cgit