aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/pages/instance
AgeCommit message (Collapse)Author
2023-01-13Merge pull request #685 from byteduck/instance-accountsflow
2023-01-13refactor: change some ResourceAPI from NetJob to Taskflow
This makes it easier to create resource apis that aren't network-based. Signed-off-by: flow <flowlnlnln@gmail.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>
2023-01-12Fix instance account selector face for offline accountsAaron
2023-01-12refactor: replace hoedown markdown parser with cmarkJoshua Goins
Signed-off-by: Joshua Goins <josh@redstrate.com>
2023-01-11feat: add button to import component JSONsSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2023-01-02Reword instance-specific account settings, apply clang-formatAaron
Signed-off-by: Aaron <10217842+byteduck@users.noreply.github.com>
2023-01-02Remove unecessary delete in InstanceSettingsPage destructorAaron Sonin
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-02Properly connect signal in instance settings for account selectorAaron Sonin
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-02Add null check for face in instance account settings selectorAaron Sonin
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-02Replace unecessary type check with assertion in InstanceSettingsPageAaron Sonin
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-02Fix conflicting layout name in InstanceSettingsPageAaron
Signed-off-by: Aaron <10217842+byteduck@users.noreply.github.com>
2023-01-02Allow selecting a default account to use with an instanceAaron
Signed-off-by: Aaron <10217842+byteduck@users.noreply.github.com>
2022-12-26Merge pull request #618 from TheKodeToad/safer-destructive-actionsSefa Eyeoglu
Fixes https://github.com/PolyMC/PolyMC/issues/948
2022-12-26Use optional instead of hardcoded cancelled stringTheKodeToad
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2022-12-26About to -> you are about toTheKodeToad
You're is used in some other places but im lazy Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2022-12-24Make requested changesTheKodeToad
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2022-12-17Merge pull request #630 from leo78913/yeet-scrollbarsflow
2022-12-17let the theme decide the notes page right marginleo78913
Signed-off-by: leo78913 <leo3758@riseup.net>
2022-12-15fix: only show scrollbars when neededleo78913
Signed-off-by: leo78913 <leo3758@riseup.net>
2022-12-14Merge branch 'develop' into remove-updaterSefa Eyeoglu
2022-12-14Add confirmation on customised componentsTheKodeToad
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2022-12-14Improve handling of destructive actionsTheKodeToad
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2022-12-13Merge pull request #601 from Scrumplex/fix-translations-3flow
2022-12-13fix: update source stringsSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-12-12fix(ManagedPackPage): crash with GTK2 theme due to QProxyStyleflow
Seemingly related issue: https://bugreports.qt.io/browse/QTBUG-49940 Signed-off-by: flow <flowlnlnln@gmail.com>
2022-12-11Merge pull request #486 from flowln/wide_bar_customizationflow
2022-12-07fix: don't try updating Flame instance names when updating versionsflow
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-06fix(ManagedPackPage): only update the current instance exactlyflow
Also carry on the original ID to avoid updating the wrong instance. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-12-06fix(ManagedPackPage): preserve pack ID from Modrinth updateflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-12-06refactor(InstanceImport): require rvalue from 'extra_info' mappingsflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-12-06fix(ManagedPagePage): don't reload pack info when not neededflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-12-06refactor(ManagedPackPage): use smart pointers instead of raw onesflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-12-06feat(ManagedPackPage): add reload button when in a fail stateflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-12-06fix(ManagedPackPage): check app capabilities for creating the CF pageflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-12-06chore(ManagedPackPage): format and add headersflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-12-06fix(ManagedPackPage): clear combo boxes when adding new versionsflow
Prevents versions to undergo mitosis. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-12-06feat(ManagedPackPage): implement Flame modpack updating buttonflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-12-06fix(ManagedPackPage): give extra_info to InstanceImportTask in MR packsflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-12-06fix(ManagedPackPage): add warning about old bug with pack IDsflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-12-06feat(ManagedPackPage): add Flame UIflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-12-06fix(ManagedPackPage): better changelog text when fetching / no changelogflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-12-06feat(ManagedPackPage): add link to the Modrinth's pack pageflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-12-06fix(ManagedPackPage): better UX for when network requests fail / are pendingflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-12-06fix: do not display managed pack page for providers without an impl. yetflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-12-06fix: use rich text in changelog for modrinth modpacksflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-12-06feat: add functionality to MR modpack update in the page :Dflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-12-06feat: add (current) indicator to the currently installed version in MRflow
Signed-off-by: flow <flowlnlnln@gmail.com>