3de681d2d6
Merge pull request #685 from byteduck/instance-accounts
2023-01-13 17:21:12 -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
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
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
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
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
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
849b92665e
Merge branch 'develop' into remove-updater
2022-12-14 23:22:27 +01:00
ee003cd9ee
Add confirmation on customised components
...
Signed-off-by: TheKodeToad <TheKodeToad@proton.me >
2022-12-14 15:40:20 +00:00
127b094c41
Improve handling of destructive actions
...
Signed-off-by: TheKodeToad <TheKodeToad@proton.me >
2022-12-14 15:20:42 +00:00
e05ccc0e55
Merge pull request #601 from Scrumplex/fix-translations-3
2022-12-13 07:01:23 -08:00
107977f3d1
fix: update source strings
...
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net >
2022-12-13 10:40:35 +01:00
83deccf266
fix(ManagedPackPage): crash with GTK2 theme due to QProxyStyle
...
Seemingly related issue: https://bugreports.qt.io/browse/QTBUG-49940
Signed-off-by: flow <flowlnlnln@gmail.com >
2022-12-12 23:31:10 -03:00
d95625ed88
Merge pull request #486 from flowln/wide_bar_customization
2022-12-11 04:16:45 -08:00
34230bfcf4
fix: don't try updating Flame instance names when updating versions
...
Since the exact version string is only available in the manifest,
there's no easy way of getting it before commiting to the update, so
there's not much of a good way of showing the updated name in the UI,
and using the displayName is weird and gives some buggy behavior.
We may want to re-enable it in the future if we find a reliable way of
showing the correct info on the UI before starting the update.
Signed-off-by: flow <flowlnlnln@gmail.com >
2022-12-07 18:05:46 -03:00
bb386a1162
fix(ManagedPackPage): only update the current instance exactly
...
Also carry on the original ID to avoid updating the wrong instance.
Signed-off-by: flow <flowlnlnln@gmail.com >
2022-12-06 17:00:34 -03:00
80054e4db2
fix(ManagedPackPage): preserve pack ID from Modrinth update
...
Signed-off-by: flow <flowlnlnln@gmail.com >
2022-12-06 17:00:34 -03:00
1630a23fb0
refactor(InstanceImport): require rvalue from 'extra_info' mappings
...
Signed-off-by: flow <flowlnlnln@gmail.com >
2022-12-06 17:00:34 -03:00
4e75419e08
fix(ManagedPagePage): don't reload pack info when not needed
...
Signed-off-by: flow <flowlnlnln@gmail.com >
2022-12-06 17:00:34 -03:00
089018015a
refactor(ManagedPackPage): use smart pointers instead of raw ones
...
Signed-off-by: flow <flowlnlnln@gmail.com >
2022-12-06 17:00:34 -03:00
feb6f285ce
feat(ManagedPackPage): add reload button when in a fail state
...
Signed-off-by: flow <flowlnlnln@gmail.com >
2022-12-06 17:00:34 -03:00
cb12c51afc
fix(ManagedPackPage): check app capabilities for creating the CF page
...
Signed-off-by: flow <flowlnlnln@gmail.com >
2022-12-06 17:00:34 -03:00
c5c426ecbc
chore(ManagedPackPage): format and add headers
...
Signed-off-by: flow <flowlnlnln@gmail.com >
2022-12-06 17:00:33 -03:00
74f7039abf
fix(ManagedPackPage): clear combo boxes when adding new versions
...
Prevents versions to undergo mitosis.
Signed-off-by: flow <flowlnlnln@gmail.com >
2022-12-06 17:00:33 -03:00
57b905be24
feat(ManagedPackPage): implement Flame modpack updating button
...
Signed-off-by: flow <flowlnlnln@gmail.com >
2022-12-06 17:00:33 -03:00
34794cc4af
fix(ManagedPackPage): give extra_info to InstanceImportTask in MR packs
...
Signed-off-by: flow <flowlnlnln@gmail.com >
2022-12-06 17:00:33 -03:00
38f59fdf39
fix(ManagedPackPage): add warning about old bug with pack IDs
...
Signed-off-by: flow <flowlnlnln@gmail.com >
2022-12-06 17:00:33 -03:00
527c1113f1
feat(ManagedPackPage): add Flame UI
...
Signed-off-by: flow <flowlnlnln@gmail.com >
2022-12-06 17:00:33 -03:00
04dbe28793
fix(ManagedPackPage): better changelog text when fetching / no changelog
...
Signed-off-by: flow <flowlnlnln@gmail.com >
2022-12-06 17:00:33 -03:00
7f5dea28bb
feat(ManagedPackPage): add link to the Modrinth's pack page
...
Signed-off-by: flow <flowlnlnln@gmail.com >
2022-12-06 17:00:32 -03:00
d4979974b4
fix(ManagedPackPage): better UX for when network requests fail / are pending
...
Signed-off-by: flow <flowlnlnln@gmail.com >
2022-12-06 17:00:32 -03:00
9539230915
fix: do not display managed pack page for providers without an impl. yet
...
Signed-off-by: flow <flowlnlnln@gmail.com >
2022-12-06 17:00:32 -03:00
25cfa26e7b
fix: use rich text in changelog for modrinth modpacks
...
Signed-off-by: flow <flowlnlnln@gmail.com >
2022-12-06 17:00:32 -03:00
58d2c15ffa
feat: add functionality to MR modpack update in the page :D
...
Signed-off-by: flow <flowlnlnln@gmail.com >
2022-12-06 17:00:32 -03:00
1c567232e3
feat: add (current) indicator to the currently installed version in MR
...
Signed-off-by: flow <flowlnlnln@gmail.com >
2022-12-06 16:54:54 -03:00