aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/pages/instance/ModFolderPage.cpp
AgeCommit message (Collapse)Author
2023-02-13do not create nilmods folderkumquat-ir
"it cant be that easy" - me, clueless Signed-off-by: kumquat-ir <66188216+kumquat-ir@users.noreply.github.com>
2023-02-11nilmods instance pagekumquat-ir
mostly copied from the coremod page impl Signed-off-by: kumquat-ir <66188216+kumquat-ir@users.noreply.github.com>
2023-01-13refactor(RD): unify download dialogs into a single fileflow
No need for multiple files since the subclasses are so small now Signed-off-by: flow <flowlnlnln@gmail.com>
2023-01-13refactor: put resource downloading classes in common namespaceflow
Puts them all inside the 'ResourceDownload' namespace, so that it's a bit clearer from the outside that those belong to the same 'module'. Signed-off-by: flow <flowlnlnln@gmail.com>
2023-01-13refactor: generalize mod models and APIs to resourcesflow
Firstly, this abstract away behavior in the mod download models that can also be applied to other types of resources into a superclass, allowing other resource types to be implemented without so much code duplication. For that, this also generalizes the APIs used (currently, ModrinthAPI and FlameAPI) to be able to make requests to other types of resources. It also does a general cleanup of both of those. In particular, this makes use of std::optional instead of invalid values for errors and, well, optional values :p This is a squash of some commits that were becoming too interlaced together to be cleanly separated. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-12-14Improve handling of destructive actionsTheKodeToad
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2022-11-27fix: make resource buttons work when instance is runningSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-10-18Streamline Button changes to improve source readability.Cleo John
2022-09-03fix: removing mods with their metadata as wellflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-08-20change: add enable/disable to resourcesflow
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>
2022-08-20refactor: adapt rest of the codebase to the new resource modelflow
In order to access the ModFolderModel from the ModFolderPage, i created a new m_model for the correct type, shadowing the m_model of type ResourceFolderModel. This creates two shared_ptr references to the same object, but since they will have the same lifetime, it doesn't generate a memory leak. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-08-20fix: distinguish CoremodsSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-08-03Move large condition into a new lambdaGingeh
Signed-off-by: Gingeh <39150378+Gingeh@users.noreply.github.com>
2022-08-02Check for running instance when re-opening the mod folder page and when ↵Gingeh
selecting mods Signed-off-by: Gingeh <39150378+Gingeh@users.noreply.github.com>
2022-08-01Disable "Check for Updates" and "Download Mods" while the game is runningGingeh
Signed-off-by: Gingeh <39150378+Gingeh@users.noreply.github.com>
2022-08-01Disable "Check for Updates" if all mods are removedGingeh
Signed-off-by: Gingeh <39150378+Gingeh@users.noreply.github.com>
2022-07-19fix: fix translations for mod updaterSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-07-17fix: std::list -> QListflow
Qt6 removed Qlist::toStdList() :sob: Signed-off-by: flow <flowlnlnln@gmail.com>
2022-07-17change: make Mod a QObject used as a pointerflow
Prevents problems when copying it around! Signed-off-by: flow <flowlnlnln@gmail.com>
2022-07-17feat: add update mods to the ui / mod modelflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-07-01feat: use ConcurrentTask for mod downloadsflow
Way faster :) Signed-off-by: flow <flowlnlnln@gmail.com>
2022-06-14refector: move download action to ExternalResourcesPageSefa Eyeoglu
2022-06-14refactor: Create a more clear hierarchy for some instance pagesflow
Previously, the Shaders, Texture packs and Resource packs tabs had as parent the ModFolderPage, making it so that making changes only to the Mods page would require checking the id of the page for the correct one. This was hackish and error-prone. Now, those pages all inherit from a single class, ExternalResourcesPage, that handles the basic behaviour of all of them, while allowing for individual modification in code. This is still not a clear separation, since internally, all those resources are derived from Mods, so for now there's still some awkward common code :/
2022-06-12chore: add license headersSefa Eyeoglu
2022-05-30Merge pull request #505 from flowln/improve_download_uxSefa Eyeoglu
2022-05-21fix: various issues with ProgressDialog and SequentialTasksflow
- Fix aborting sequential tasks - Fix displaying wrong number of tasks concluded - Fix text cutting when the URL is too big
2022-05-19refactor: allow tracking multiple mod loadersSefa Eyeoglu
2022-04-14refactor: cleanup ModLoaderTypeSefa Eyeoglu
2022-04-14fix: remove unused codeSefa Eyeoglu
2022-04-07fix: check for Quilt as Fabric-compatible loaderSefa Eyeoglu
2022-04-01feat: Use a single progress dialog when doing multiple tasksflow
This puts all mod downloading tasks inside a SequentialTask, which is, for more than one task, a multi step task. This is handled by the ProgressDialog by showing both the global progress of tasks executed, and the individual progress of each of them.
2022-03-20chore: add license headerSefa Eyeoglu
2022-03-20App: Retranslate all pages when the language is changedJamie Mansfield
2022-03-20fix: disable "Download mods" button when neededSefa Eyeoglu
Fixes #271
2022-03-11fix missing translation stringsflow
my mistake, sorry! ToT
2022-03-03fix extra spacing in resource packs and shader packs, and move button upflow
hopefully now its finally ok
2022-03-03hack: hide 'Download Mods' button when not in the mods tabflow
2022-03-03change 'Install Mods' -> 'Download Mods' and change positionflow
2022-02-21feat: change task container in ModDownloadDialog to a QHashflow
Previously, we used a unique_ptr to a ModDownloadTask to keep track of the selected mod to download when we accepted the dialog. In order to allow multiple mods to be selected at once for download, this has been changed to a QHash where the key is the mods name (since it doesn't seem right to allow for multiple versions of the same mod to be downloaded at once), and the value is a pointer to the corresponding ModDownloadTask.
2022-01-28Fix button being present in other pagestimoreo
2022-01-24Fixed spacingtimoreo
2022-01-18Various fixestimoreo
2022-01-14Fixed iconstimoreo
Also having a mod loader is now enforced
2022-01-14Start of mod downloadingtimoreo
2021-11-22NOISSUE continue reshuffling the codebasePetr Mrázek