900579eea6
Handle checkbox toggle
...
Signed-off-by: TheKodeToad <TheKodeToad@proton.me >
2025-03-19 01:17:25 +00:00
8577f58fe3
Remove UserDataTypes::SELECTED
...
Signed-off-by: TheKodeToad <TheKodeToad@proton.me >
2025-03-18 20:44:49 +00:00
5f70335a07
Render checkbox in project items
...
Signed-off-by: TheKodeToad <TheKodeToad@proton.me >
2025-03-18 19:52:59 +00:00
82bffabb69
do not capture by default all values in lambdas
...
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com >
2024-10-30 18:16:43 +02:00
2030041fcc
Fix tests segfault
...
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com >
2024-10-19 21:42:14 +03:00
c04031ff00
Merge branch 'develop' of https://github.com/PrismLauncher/PrismLauncher into fix_retry_dialog
2024-06-23 23:40:12 +03:00
694ea65457
disable retry dialog for logo fetching
...
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com >
2024-05-26 11:13:01 +03:00
5bd28e2cc8
Merge branch 'develop' of https://github.com/PrismLauncher/PrismLauncher into filters
2024-05-18 17:11:41 +03:00
3336f8107c
Removed AuthRequest and NetAction
...
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com >
2024-05-14 00:21:45 +03:00
3c12e27226
Merge branch 'develop' of https://github.com/PrismLauncher/PrismLauncher into filters
2024-03-23 23:53:25 +02:00
8cf2a04f31
Fix formatting issues
...
Signed-off-by: TheKodeToad <TheKodeToad@proton.me >
2024-02-12 15:24:56 +00:00
ff989b4305
Fix ResourceModel error display
...
Signed-off-by: TheKodeToad <TheKodeToad@proton.me >
2024-02-11 15:43:36 +00:00
eb8e150fa8
one more
...
Signed-off-by: lumiscosity <averyrudelphe@gmail.com >
2023-12-16 13:00:22 +01:00
763eab6b96
Merge branch 'develop' of https://github.com/PrismLauncher/PrismLauncher into filters
2023-12-13 14:48:31 +02:00
2d91bd09d4
Fixed crash on abort function not initialized
...
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com >
2023-11-26 23:49:56 +02:00
9e85297f7a
Connected filters
...
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com >
2023-10-21 18:28:33 +03:00
30f73a0696
Merge branch 'fail_concurrent_task' of github.com:Trial97/PrismLauncher into concurrent
...
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com >
2023-10-18 18:08:31 +03:00
2ff9ef0620
Merge pull request #1363 from Trial97/download_threads
2023-09-28 22:02:57 +02:00
abbac5c26c
Merge branch 'develop' of https://github.com/PrismLauncher/PrismLauncher into fail_concurrent_task
...
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com >
2023-09-01 22:28:59 +03:00
8c607ae734
removed extra if
...
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com >
2023-08-27 20:02:12 +03:00
58efd3e9e2
fixed code scaning
...
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com >
2023-08-18 21:43:57 +03:00
4c52b18bdd
replaced removeFirst with mid
...
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com >
2023-08-18 20:19:51 +03:00
44ff247f5f
feat:refactored modpack ux
...
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com >
2023-08-18 20:03:02 +03:00
42a6c670c7
Merge branch 'develop' of https://github.com/PrismLauncher/PrismLauncher into fail_concurrent_task
...
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com >
2023-08-15 12:52:59 +03:00
cf27d2f9ab
Merge branch 'develop' of https://github.com/PrismLauncher/PrismLauncher into download_threads
...
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com >
2023-08-15 12:49:21 +03:00
ef6f9487f4
Merge remote-tracking branch 'upstream/staging' into chore/add-compiler-warnings
2023-08-10 20:38:32 +02:00
6cf7c0a647
Connected last fail signals
...
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com >
2023-07-15 20:17:16 +03:00
149b6d59cf
fixed tests
...
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com >
2023-07-14 23:22:11 +03:00
db9f5f44e0
Split in two the options
...
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com >
2023-07-14 22:26:22 +03:00
8d7dcdfc5b
chore: fix shadowed member and signed/unsigned mismatch
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
chore: supress unused with [[maybe_unused]]
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
chore: unshadow ^&^& static_cast implicit return
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
chore: deshadow and mark unused in parse task
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
chore: mark unused in folder models
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
chore: deshadow and mark unused with instances
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
chore: more deshadow and unused
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
chore: remove uneeded simicolons
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
chore: mark unused
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
chore: prevent shadow
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2023-07-01 23:39:38 -07:00
9c10965997
refactor: split out setting api headers for downloads
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2023-06-25 11:09:25 -07:00
f96b135ef7
Higlight installed mods
...
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com >
2023-06-08 20:26:09 +03:00
1840505a0f
Fix crash when selecting same mod from different providers ( #1029 )
2023-06-02 18:04:06 -03:00
ff03dd22fe
fix(memory leak): don't override default deconstructor + reset shared_ptr + ensure modal get's cleaned up
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2023-05-26 21:10:49 -07:00
aae892dfd1
fix(memory leak): IndexedPack too large to live inside a qlist without pointers ()
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2023-05-26 19:21:07 -07:00
29f7ea752f
refactor: make shared_qobject_ptr ctor explicit
...
This turns issues like creating two shared ptrs from a single raw ptr
from popping up at runtime, instead making them a compile error.
Signed-off-by: flow <flowlnlnln@gmail.com >
2023-01-25 16:57:51 -03:00
ea5020e188
fix(license): add/fix my copyright/license headers
...
*sobbing in messy legal stuff i know nothing about*
Signed-off-by: flow <flowlnlnln@gmail.com >
2023-01-23 11:12:43 -03:00
1919069b12
fix(RD): don't assert search offset on fetchMore() in ResourceModel
...
This allows the standard QAbstractItemModelTester to work without
shenanigans!
Signed-off-by: flow <flowlnlnln@gmail.com >
2023-01-13 16:23:09 -03:00
ba677a8cb7
refactor: change some ResourceAPI from NetJob to Task
...
This makes it easier to create resource apis that aren't network-based.
Signed-off-by: flow <flowlnlnln@gmail.com >
2023-01-13 16:23:09 -03:00
e62e1d9701
refactor(RD): move BaseInstance dep. to subclasses of ResourceModel
...
Signed-off-by: flow <flowlnlnln@gmail.com >
2023-01-13 16:23:08 -03:00
3cff23dae2
refactor(RD): move success callbacks from ModModel to ResourceModel
...
While implementing the resource pack downloader in another branch, I
noticed that most of the code in the success callback was identical in
both cases, safe for a few minute differences in strings. So, this tries
to make it easier to share this piece of code.
However, it still leaves the possibility of extending the methods in
ResourceModel to accomodate for cases where this similarity may not
hold.
Signed-off-by: flow <flowlnlnln@gmail.com >
2023-01-13 16:23:08 -03:00
c3f0139f76
refactor(RD): add helper in ResourceModel to find current sorting
...
Signed-off-by: flow <flowlnlnln@gmail.com >
2023-01-13 16:23:08 -03:00
563fe8d515
fix(RD): separate search and versions/info tasks
...
This allows us to check whether a search request is already on-going, in
which case we don't need to make another one (and shouldn't).
Signed-off-by: flow <flowlnlnln@gmail.com >
2023-01-13 16:23:08 -03:00
0e207aba6c
feat(RD): add roleNames and Q_PROPERTY to ResourceModel
...
in preparation for QML interop.
Signed-off-by: flow <flowlnlnln@gmail.com >
2023-01-13 16:23:07 -03:00
45d1319891
refactor(RD): decouple ResourceModels from ResourcePages
...
This makes it so that we don't need a reference to the parent page in
the model. It will be useful once we change the page from a widget-based
one to a QML page.
It also makes tasks be created in the dialog instead of the page, so
that the dialog can also have the necessary information to mark versions
as selected / deselected easily. It also makes the task pointers into
smart pointers.
Signed-off-by: flow <flowlnlnln@gmail.com >
2023-01-13 16:23:07 -03:00
433a802c6e
refactor: put resource downloading classes in common namespace
...
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-13 16:23:06 -03:00
6a18079953
refactor: generalize mod models and APIs to resources
...
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 >
2023-01-13 16:23:00 -03:00