38e20eb148
fix(RD): pass copy of IndexedPack to callbacks instead of ref.
...
This prevents a crash in which the pack list gets updated in a search
request meanwhile a versions / extra info request is being processed.
Previously, this situation would cause the reference in the latter
callbacks to be invalidated by an internal relocation of the pack list.
Signed-off-by: flow <flowlnlnln@gmail.com >
2023-01-13 16:23:07 -03:00
36571c5e22
refactor(RD): clear up sorting methods
...
This refactors the sorting methods to join every bit of it into a single
list, easing maintanance. It also removes the weird index contraint on
the list of methods by adding an index field to the DS that holds the
method.
Lastly, it puts the available methods on their respective API, so other
resources on the same API can re-use them later on.
Signed-off-by: flow <flowlnlnln@gmail.com >
2023-01-13 16:23:07 -03:00
c8eca4fb85
fix: build with qt5.12 on Linux and pedantic flag
...
Signed-off-by: flow <flowlnlnln@gmail.com >
2023-01-13 16:23:07 -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
39b7ac90d4
refactor(RD): unify download dialogs into a single file
...
No need for multiple files since the subclasses are so small now
Signed-off-by: flow <flowlnlnln@gmail.com >
2023-01-13 16:23:06 -03:00
ef87bdf18a
fix(RD): prevent weird behavior of progress widget
...
when i.e. clicking on links or just using the downloader at all, this
prevents some flickering and the widget never getting hidden in some
cases.
Signed-off-by: flow <flowlnlnln@gmail.com >
2023-01-13 16:23:06 -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
b937d33436
Merge pull request #714 from redstrate/cmark
2023-01-13 16:16:00 -03:00
b2f48eaeb8
Merge branch 'PrismLauncher:develop' into instance-accounts
2023-01-12 20:11:46 -08:00
160dd09fc2
Fix instance account selector face for offline accounts
2023-01-12 20:03:31 -08:00
24a4bd3a1c
refactor: replace hoedown markdown parser with cmark
...
Signed-off-by: Joshua Goins <josh@redstrate.com >
2023-01-12 10:08:52 -05:00
fff52cb247
feat: add button to import component JSONs
...
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net >
2023-01-11 13:50:57 +01:00
668b19d119
Add hint about Cat
...
Signed-off-by: Tayou <tayou@gmx.net >
2023-01-10 16:09:57 +01:00
5c48f0b458
fix: set minimum size for setup wizard
...
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net >
2023-01-10 16:06:50 +01:00
689fe1e2c7
CRLF -> LF
...
damn you visual studio for creating CRLF files everywhere...
Signed-off-by: Tayou <tayou@gmx.net >
2023-01-10 16:06:50 +01:00
7d440402ad
Update launcher/Application.cpp with suggestion from scrumplex
...
Co-authored-by: Sefa Eyeoglu <contact@scrumplex.net >
Signed-off-by: Tayou <tayou@gmx.net >
2023-01-10 16:06:42 +01:00
6daa457838
Implement Suggestions from flow & Scrumplex
...
Signed-off-by: Tayou <tayou@gmx.net >
2023-01-10 16:06:42 +01:00
49d317b19a
UX tweak + formatting + added cat to wizard
...
Signed-off-by: Tayou <tayou@gmx.net >
2023-01-10 16:06:24 +01:00
1b80ae0fca
add theme setup wizard
...
Signed-off-by: Tayou <tayou@gmx.net >
2023-01-10 16:06:01 +01:00
61144f7a21
Merge pull request #726 from TheLastRar/qt6-win-darkmode
...
Closes https://github.com/PrismLauncher/PrismLauncher/issues/158
2023-01-10 08:48:17 +01:00
574af2c795
chore: cleanup review suggestions
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2023-01-09 17:18:08 -07:00
a4870d4834
fix: fix #700
...
fixed by properly converting from a file path and converting to native seperators.
should have known naive handling of file path as a URL would come back to bite us cross platform.
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2023-01-09 17:00:12 -07:00
78bbcac0ea
ui: Let Qt 6.4.2 handle dark mode titlebar
...
Signed-off-by: TheLastRar <TheLastRar@users.noreply.github.com >
2023-01-09 19:44:11 +00:00
ca9b2525c8
Merge pull request #715 from getchoo/add-teawie
2023-01-09 09:46:31 +01:00
30b01ef053
fix: *sigh* no implicit QString->QFileInfo conversion in Qt6, again...
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2023-01-07 15:04:23 -07:00
03b75bf2a9
feat: Import all the things!
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2023-01-07 15:04:22 -07:00
8140f5136d
feat: add teawie
...
drawn by sympathytea (https://github.com/SympathyTea )
Signed-off-by: seth <getchoo@tuta.io >
2023-01-06 22:28:15 -05:00
f04703f09b
Strip certain HTML tags when rendering mod pages
...
Some mod pages use certain tags for centering purposes, but trips up
hoedown.
Signed-off-by: Joshua Goins <josh@redstrate.com >
2023-01-06 15:05:19 -05:00
e0e3d4d8fe
Merge branch 'PrismLauncher:develop' into instance-accounts
2023-01-02 11:59:29 -07:00
ba81ad1ac3
Reword instance-specific account settings, apply clang-format
...
Signed-off-by: Aaron <10217842+byteduck@users.noreply.github.com >
2023-01-02 11:17:19 -07:00
eefb259ddf
Remove unecessary delete in InstanceSettingsPage destructor
...
Co-authored-by: flow <flowlnlnln@gmail.com >
Signed-off-by: Aaron Sonin <10217842+byteduck@users.noreply.github.com >
Signed-off-by: Aaron <10217842+byteduck@users.noreply.github.com >
2023-01-02 11:17:19 -07:00
9b8add1961
Properly connect signal in instance settings for account selector
...
Co-authored-by: flow <flowlnlnln@gmail.com >
Signed-off-by: Aaron Sonin <10217842+byteduck@users.noreply.github.com >
Signed-off-by: Aaron <10217842+byteduck@users.noreply.github.com >
2023-01-02 11:17:19 -07:00
e186523878
Add null check for face in instance account settings selector
...
Co-authored-by: flow <flowlnlnln@gmail.com >
Signed-off-by: Aaron Sonin <10217842+byteduck@users.noreply.github.com >
Signed-off-by: Aaron <10217842+byteduck@users.noreply.github.com >
2023-01-02 11:17:19 -07:00
021e6c02d7
Replace unecessary type check with assertion in InstanceSettingsPage
...
Co-authored-by: flow <flowlnlnln@gmail.com >
Signed-off-by: Aaron Sonin <10217842+byteduck@users.noreply.github.com >
Signed-off-by: Aaron <10217842+byteduck@users.noreply.github.com >
2023-01-02 11:17:19 -07:00
cba3d68063
Fix conflicting layout name in InstanceSettingsPage
...
Signed-off-by: Aaron <10217842+byteduck@users.noreply.github.com >
2023-01-02 11:17:19 -07:00
7e2d78bab5
Allow selecting a default account to use with an instance
...
Signed-off-by: Aaron <10217842+byteduck@users.noreply.github.com >
2023-01-02 11:17:19 -07:00
d55f47077a
Merge pull request #626 from leo78913/mods-provider-column
...
closes https://github.com/PrismLauncher/PrismLauncher/issues/402
2022-12-30 11:39:03 -03:00
141e94369e
feat(Mods): hide 'Provider' column when no mods have providers
...
This makes the mod list look a bit less polluted in the common case of
mods having no provider whatsoever.
Signed-off-by: flow <flowlnlnln@gmail.com >
2022-12-29 13:21:49 -03:00
6ea1234a3b
Merge pull request #618 from TheKodeToad/safer-destructive-actions
...
Fixes https://github.com/PolyMC/PolyMC/issues/948
2022-12-26 17:48:43 +01:00
434f639b0c
Use optional instead of hardcoded cancelled string
...
Signed-off-by: TheKodeToad <TheKodeToad@proton.me >
2022-12-26 14:58:37 +00:00
bf04becc9e
About to -> you are about to
...
You're is used in some other places but im lazy
Signed-off-by: TheKodeToad <TheKodeToad@proton.me >
2022-12-26 14:45:04 +00:00
cbe5af235c
Make requested changes
...
Signed-off-by: TheKodeToad <TheKodeToad@proton.me >
2022-12-24 08:59:55 +00:00
0516055b31
Merge pull request #630 from leo78913/yeet-scrollbars
2022-12-17 08:02:41 -08:00
3653e9d5e3
let the theme decide the notes page right margin
...
Signed-off-by: leo78913 <leo3758@riseup.net >
2022-12-17 12:05:20 -03:00
c8d8dda79a
fix: only show scrollbars when needed
...
Signed-off-by: leo78913 <leo3758@riseup.net >
2022-12-15 16:34:52 -03:00
4f1ea712da
Merge pull request #605 from flowln/fix_crash_in_downloader_image
...
Fixes https://github.com/PrismLauncher/PrismLauncher/issues/590
2022-12-15 04:47:56 -08:00
849b92665e
Merge branch 'develop' into remove-updater
2022-12-14 23:22:27 +01:00
d193ed9eeb
Merge pull request #561 from leo78913/iconpicker-stuff
...
closes https://github.com/PrismLauncher/PrismLauncher/issues/494
2022-12-14 23:15:21 +01:00