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
807da6a035
fix: Remove extra line breaks for modrinth descriptions
...
Signed-off-by: Joshua Goins <josh@redstrate.com >
2023-01-12 10:08:52 -05:00
22a2b7ac46
refactor: support system and bundled cmark
...
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net >
2023-01-12 10:08:52 -05: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
219c5b323d
Merge pull request #731 from flowln/windows_server_trash
2023-01-11 09:49:20 +01:00
391ef64c22
fix(FileSystem): don't attempt to trash items on Windows Server
...
For some reason this makes some of our CI test runs super slow, and
sometimes fail miserably.
Signed-off-by: flow <flowlnlnln@gmail.com >
2023-01-10 12:50:56 -03: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
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
9de6927c3f
feat: add CC BY-SA 4.0 info for teawie images
...
Signed-off-by: seth <getchoo@tuta.io >
2023-01-07 19:18:22 -05:00
f3f628410d
Merge pull request #576 from Ryex/identify-zip-packs
...
fix https://github.com/PrismLauncher/PrismLauncher/issues/349
2023-01-07 17:33:34 +01:00
9901ecda49
Merge pull request #710 from byquanton/develop
...
Fixes https://github.com/PrismLauncher/PrismLauncher/issues/708
2023-01-07 17:18:10 +01:00
f5955a4738
feat: add bday teawie
...
Signed-off-by: seth <getchoo@tuta.io >
2023-01-07 04:47:53 -05:00
e018b30875
fix: make spooky teawie load
...
gimp fail
Signed-off-by: seth <getchoo@tuta.io >
2023-01-07 04:38:26 -05:00
2dbd775cf3
feat: add xmas teawie
...
Signed-off-by: seth <getchoo@tuta.io >
2023-01-07 04:37:41 -05:00
a5051327db
feat: add spooky teawie
...
Signed-off-by: seth <getchoo@tuta.io >
2023-01-07 03:42:53 -05: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
2faf8332ee
fix: Add 1.16+ Forge library prefix in TechnicPackProcessor.cpp
...
Signed-off-by: byquanton <32410361+byquanton@users.noreply.github.com >
2023-01-06 02:44:10 +01:00
0ebf04a021
fix newlines
...
Co-authored-by: flow <flowlnlnln@gmail.com >
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2022-12-30 10:21:49 -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
7f438425aa
refactor: add an identify
function to make easy to reuse
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2022-12-29 19:47:19 -07:00
c470f05abf
refactor: use std::filesystem::rename insted of copy and then moving.
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2022-12-29 17:21:54 -07: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
257970c27d
refactor(Mods): make provider() return a std::optional
...
This makes it easier to check if a mod has a provider or not, without
having to do a string comparison.
Signed-off-by: flow <flowlnlnln@gmail.com >
2022-12-29 13:21:49 -03:00
7a651bdc53
feat: install launcher logging categories
...
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net >
2022-12-27 18:10:01 +01:00
f33f596584
refactor: use ECM logging categories instead
...
Co-authored-by: flow <flowlnlnln@gmail.com >
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net >
2022-12-27 17:34:21 +01:00
c8d8046412
refactor: add logging category for credentials
...
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net >
2022-12-27 17:04:42 +01:00
3691f3a296
fix: cleanup and suggested changes
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2022-12-26 14:50:15 -07: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
b2082bfde7
fix: explicit QFileInfo converison for qt6
...
fix: validatePath in validateZIPResouces
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2022-12-25 17:16:26 -07:00
78984eea3a
feat: support installing worlds during flame pack import.
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2022-12-25 16:49:56 -07:00
8422e3ac01
feat: zip resource validation check for flame
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2022-12-24 20:43:17 -07:00
cfce54fe46
fix: update parse tests
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2022-12-24 20:43:17 -07:00
a7c9b2f172
feat: validate world saves
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2022-12-24 20:43:17 -07:00
eb31a951a1
feat: worldSave parsing and validation
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2022-12-24 20:43:01 -07:00
ccfe605920
feat: add shaderpack validation
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2022-12-24 15:55:10 -07:00