Commit Graph

5010 Commits

Author SHA1 Message Date
sshcrack 8bb35f5b0b add macos support for shortcuts
Signed-off-by: sshcrack <34072808+sshcrack@users.noreply.github.com>
2024-12-07 20:25:09 +01:00
leia uwu 614574f15c fix icon theme search paths
using fallback search paths breaks qadwaitadecorations

Signed-off-by: leia uwu <leia@tutamail.com>
2024-12-06 23:26:46 -03:00
Alexandru Ionut Tripon 28a471777a Merge pull request #2800 from QazCetelic/advanced-icon-dialog
Add search and support for subdirectories to icon picker
2024-12-06 12:37:45 +02:00
iTrooz f9e450ace2 do not destroy the ping ConcurrentTask directly at the end of the task
Signed-off-by: iTrooz <hey@itrooz.fr>
2024-12-05 20:43:40 +01:00
iTrooz 4e48015868 currentQueryTask -> m_currentQueryTask
Signed-off-by: iTrooz <hey@itrooz.fr>
2024-12-05 20:43:40 +01:00
TheKodeToad 488dc7815c Merge pull request #3135 from Trial97/italic
Make FTB Import note italic to match others
2024-12-02 14:07:42 +00:00
leia uwu 3f67ef968b fix: icon search paths memory leak
Signed-off-by: leia uwu <leia@tutamail.com>
2024-11-30 12:51:39 -03:00
leia uwu fd9c80db62 fix: fix system icons
This sets the fallback icon theme to the current(system default) icon theme before
launcher specific themes are applied

And removes `Inherits` line of multimc/legacy icon theme because it can end up making it
inherit a default theme set from /usr/share/icons/default/index.theme
instead of the user configured theme (probably a qt bug?)

Signed-off-by: leia uwu <leia@tutamail.com>
2024-11-30 11:35:41 -03:00
Kenneth Chew 884f15da1e Remove unnecessary hardened runtime exceptions
These are cruft from an older time when the launcher was ad-hoc signed, and the OS couldn't tell the libraries and launcher were signed by the same party.

Additionally, add a workaround to send the necessary library injection to the game if Steam overlay is used despite library validation being on for the launcher.

Signed-off-by: Kenneth Chew <79120643+kthchew@users.noreply.github.com>
2024-11-29 21:18:06 -05:00
iTrooz ba0bd5fd74 Use shared pointer to store server query task
Signed-off-by: iTrooz <hey@itrooz.fr>
2024-11-29 19:42:54 +01:00
iTrooz 1477d64400 add m_ prefix to class members
Signed-off-by: iTrooz <hey@itrooz.fr>
2024-11-29 19:42:52 +01:00
iTrooz 4aaf7b9b09 chore
Signed-off-by: iTrooz <hey@itrooz.fr>
2024-11-29 14:07:39 +01:00
iTrooz 01db826ec9 Reset online players UI component when refreshing 2024-11-29 00:58:08 +01:00
iTrooz b0778e7a1f chore 2024-11-29 00:44:31 +01:00
iTrooz 09782745c6 make writePacketToSocket() clear data automatically 2024-11-29 00:44:25 +01:00
iTrooz ae7d3379e4 abort current query task if present when refreshing 2024-11-29 00:39:43 +01:00
iTrooz 3fb6764ea4 fix typo 2024-11-29 00:13:43 +01:00
iTrooz 5eb417ff2b Always autodelete signal connections with this captured when the objet is deleted, just to be sure 2024-11-28 23:54:51 +01:00
iTrooz cfb0c97262 use Json::requireInteger() 2024-11-28 18:09:38 +01:00
iTrooz d124e2e0cb cleanup 2024-11-28 17:50:55 +01:00
iTrooz 6f9be258dc add documentation about task abortion 2024-11-28 17:49:35 +01:00
iTrooz dbb88ca7df move ServerPingTask in its own file 2024-11-28 17:46:42 +01:00
iTrooz 8b90a9f2b3 remove infinite loop from readVarInt() 2024-11-28 17:32:49 +01:00
iTrooz 873232ebe3 remove infinite loop in writeVarInt() 2024-11-28 17:29:35 +01:00
iTrooz 26f50f9b81 connect job to deletion task before starting it
This ensures the signal is not fired before we have connected it
2024-11-26 18:50:37 +01:00
iTrooz ca52d00b80 replace std::string by QString in emitFail() 2024-11-26 18:47:13 +01:00
iTrooz 66f36195d8 simplify code 2024-11-26 18:44:21 +01:00
iTrooz f05548f3a3 remove implicit captures 2024-11-26 18:43:14 +01:00
iTrooz 3a9c030982 Do not timeout after just 3000ms
Keep the network default timeout
2024-11-26 18:24:46 +01:00
iTrooz fef8ee2d1b Disconnect task finished signal when ServersModel is destroyed 2024-11-26 18:16:15 +01:00
iTrooz 7c61fec8e0 Make task output online players rather than updating Server itself
This doesn't really change anything
2024-11-26 18:03:35 +01:00
iTrooz 087ab70143 refresh UI when we got the players online 2024-11-26 14:33:02 +01:00
iTrooz 4fad298d67 put more McClient methods to private 2024-11-26 13:22:02 +01:00
iTrooz 520d6b0b42 run socket code in thread 2024-11-26 13:22:00 +01:00
iTrooz ca6d66970e add documentation for Task and ConcurrentTask 2024-11-25 23:49:03 +01:00
Jan200101 514ec99a03 Integrate switcheroo-control for discrete GPU support
Signed-off-by: Jan200101 <sentrycraft123@gmail.com>
2024-11-25 22:29:39 +01:00
iTrooz 7d2da19418 make McResolver have the same signal name conventions as Task 2024-11-25 01:09:47 +01:00
iTrooz 24b9815763 cleanup 2024-11-25 00:16:46 +01:00
iTrooz 7c8d2c9b55 always delete McResolver object, even when it fails 2024-11-25 00:16:25 +01:00
iTrooz 0c6f78dee2 communicate when ServerPingTask succeeds/fails 2024-11-25 00:10:17 +01:00
iTrooz 9ce5eaaa0c fix job being deleted before tasks are finished 2024-11-24 23:54:19 +01:00
Kationor b40a1973bf Improve MANIFEST.MF parsing
Previously, we would only properly parse LF-encoded manifests, and even
those only if they used the recommended casing.

This commit allows the parser to recognise CR and CRLF newlines, and
also makes the name comparison case insensitive to align with the
specification. (Though not completely: we still don't support multiline
values)

Signed-off-by: Kationor <n96211028@gmail.com>
2024-11-24 19:30:59 +01:00
Trial97 a09af619ce Make FTB Import note italic to match others
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2024-11-24 20:29:07 +02:00
iTrooz 5cfb5a6f0d do not capture things implicitely in lambdas 2024-11-24 16:37:42 +01:00
QazCetelic 33ff3b4f36 Fix naming
Signed-off-by: QazCetelic <qaz.cetelic@protonmail.com>
2024-11-23 18:10:33 +01:00
Awqre 00fa65c18b Merge branch 'PrismLauncher:develop' into develop 2024-11-20 02:08:31 +00:00
iTrooz 1fb0fe0171 ping servers when opening Servers page 2024-11-19 20:48:17 +01:00
iTrooz a79a66c177 remove debug print 2024-11-19 20:43:04 +01:00
iTrooz 60fb922ba2 remove QObject parent argument from ServerPingTask constructor 2024-11-19 20:43:04 +01:00
Alexandru Ionut Tripon e5a4dfdf16 Merge pull request #2962 from AOSC-Tracking/upstream/detect-aosc-os-jdks
javautils: add a filter for detecting Java paths on AOSC OS
2024-11-19 13:44:57 +02:00