160dd09fc2
Fix instance account selector face for offline accounts
2023-01-12 20:03:31 -08: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
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
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
ee3e65d759
feat(docs): add note about logging env variables in man page
...
Signed-off-by: flow <flowlnlnln@gmail.com >
2022-12-22 19:18:16 -03:00
c85867395d
feat: use Qt logging facilities instead of our own
...
This system allows us to globally define categories, and control whether
they are shown or not at runtime. It also does some things by it's own,
so we can remove some (uhhh) code.
Lastly, this allows changing the behavior of the logger at runtime via
environment variables that Qt takes care of for us.
Signed-off-by: flow <flowlnlnln@gmail.com >
2022-12-22 19:15:50 -03:00
df1b7f1656
Merge pull request #628 from flowln/fix_multiple_resource_packs_crash
...
Fixes https://github.com/PrismLauncher/PrismLauncher/issues/624
2022-12-19 15:35:34 +01:00
6e07c11f65
fix: exclude unused tls backends
...
makes bundles slightly smaller on windows and macos:
- qopensslbackend will not be used neither on macos nor on qt6 windows, so let's just not copy it
- qcertonlybackend won't be used and wouldn't work for prism anyways as it doesn't support some features we use
Signed-off-by: DioEgizio <83089242+DioEgizio@users.noreply.github.com >
2022-12-18 11:03:48 +01:00
8da6667816
Merge pull request #636 from flowln/fix_component_version_when_updating
...
Correctly set component versions in Modrinth pack updating
2022-12-17 17:26:34 +01:00
81fedbf03c
refactor(Tasks): remove 'm_total_size' from ConcurrentTask
...
We can use the queues directly instead.
Signed-off-by: flow <flowlnlnln@gmail.com >
2022-12-17 13:10:19 -03:00
0516055b31
Merge pull request #630 from leo78913/yeet-scrollbars
2022-12-17 08:02:41 -08:00
e3f8d99087
refactor(Inst. Import): use m_* for member variables in MR components
...
Makes it clearer what is being changed when.
Signed-off-by: flow <flowlnlnln@gmail.com >
2022-12-17 12:41:10 -03:00
22aebc2215
fix(Inst. Import): correctly set component versions when updating
...
This makes it so that the later call to parse the old manifest doesn't
change the class data, so that the new data con continue there and be
reflected on the component list later.
Co-authored-by: Sefa Eyeoglu <contact@scrumplex.net >
Signed-off-by: flow <flowlnlnln@gmail.com >
2022-12-17 12:38:58 -03: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
ee67b5f1ad
Merge pull request #607 from flowln/dont_crash_on_zip_import
...
Fixes https://github.com/PrismLauncher/PrismLauncher/issues/609
2022-12-16 07:22:22 -08:00
aa3633d2d7
fix: translate unknown mod provider
...
Co-authored-by: flow <flowlnlnln@gmail.com >
Signed-off-by: leo78913 <leo3758@riseup.net >
2022-12-16 11:13:54 -03:00
c8d8dda79a
fix: only show scrollbars when needed
...
Signed-off-by: leo78913 <leo3758@riseup.net >
2022-12-15 16:34:52 -03:00
c440f33122
fix(ResourceModel): use a single ConcurrentTask for parsing tasks
...
This avoids creating a bunch of threads that fills up the maximum amount
allowed by QThreadPool, and causes a deadlock between the helper threads
and the main thread (main thread tries to create threads in painting
code, but isn't able to, so it keeps waiting for a thread to free up,
but all the threads are waiting on the main thread to process some
events).
Signed-off-by: flow <flowlnlnln@gmail.com >
2022-12-15 13:51:07 -03:00
b0c866bfaa
feat(Tasks): allow adding subtasks while running in ConcurrentTask
...
Signed-off-by: flow <flowlnlnln@gmail.com >
2022-12-15 13:48:53 -03:00
dd578354c4
feat(Tasks): add ConcurrentTask::clear to allow re-using tasks
...
This way old runs won't pile up in the internal DSs
Signed-off-by: flow <flowlnlnln@gmail.com >
2022-12-15 13:45:50 -03:00
4ee29b388d
feat: add a provider column to the mods page
...
Signed-off-by: leo78913 <leo3758@riseup.net >
2022-12-15 12:02:08 -03:00
52dc9068e5
ApplicationMessage: Use QHash instead of QMap
...
QHash provides faster lookup times than QMap because it uses a hash table to store the elements, while QMap uses a self-balancing binary tree.
Signed-off-by: Edgars Cīrulis <edgarsscirulis@gmail.com >
2022-12-15 16:17:19 +02: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
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
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
821c424b66
move cat to bottom right
...
Signed-off-by: DioEgizio <83089242+DioEgizio@users.noreply.github.com >
2022-12-14 08:36:35 +01:00
5450e0edf3
fix(Inst.Import): don't set managed pack info from imported ZIPs
...
This prevents the Managed Pack page from showing up even though there's
no way for it to work correctly.
Signed-off-by: flow <flowlnlnln@gmail.com >
2022-12-13 13:43:27 -03: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
64585d8f78
fix(Inst.Import): don't assert extra data when importing from ZIP
...
ZIPs don't have the necessary data in those cases.
Signed-off-by: flow <flowlnlnln@gmail.com >
2022-12-13 00:31:41 -03:00
756d933d1a
fix: bind image fetch callback lambda to the parent object
...
Fixes a possible crash with the callback being called after the image
object was already deleted.
Signed-off-by: flow <flowlnlnln@gmail.com >
2022-12-12 23:51:22 -03: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
7e96077ed7
Fix: Reset stylesheet before setting style
...
Resolves #510
Signed-off-by: TheLastRar <TheLastRar@users.noreply.github.com >
2022-12-12 20:22:08 +00:00
822c5a530e
Not all libraries are from Mojang
...
Signed-off-by: Una <me@unascribed.com >
2022-12-11 16:11:32 -08:00