aboutsummaryrefslogtreecommitdiff
path: root/launcher
AgeCommit message (Collapse)Author
2022-08-03fix: Add root path detection on OpenBSDSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-08-03fix: allow user to interrupt launch after 3 triesSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-08-03Move large condition into a new lambdaGingeh
Signed-off-by: Gingeh <39150378+Gingeh@users.noreply.github.com>
2022-08-02fix: remove orphaned metadata to avoid problems with auto-updating instsflow
Just as my master has taught me. :gun: Signed-off-by: flow <flowlnlnln@gmail.com>
2022-08-02Check for running instance when re-opening the mod folder page and when ↵Gingeh
selecting mods Signed-off-by: Gingeh <39150378+Gingeh@users.noreply.github.com>
2022-08-02Update launcher/ui/pages/instance/ModFolderPage.hGingeh
Co-authored-by: flow <flowlnlnln@gmail.com> Signed-off-by: Gingeh <39150378+Gingeh@users.noreply.github.com>
2022-08-01fix: prevent segfault due to callbacks into deleted objectsflow
Since network requests are, for the most part, asynchronous, there's a chance a request only comes through after the request sender has already been deleted. This adds a global (read static) hash table relating models for the mod downloader to their status (true = alive, false = destroyed). It is a bit of a hack, but I couldn't come up with a better way of doing this. To reproduce the issue before this commit: scroll really quickly through CF mods, to trigger network requests for their versions and description. Then, in the middle of it close the mod downloader. Sometimes this will create a crash. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-08-01Disable "Check for Updates" and "Download Mods" while the game is runningGingeh
Signed-off-by: Gingeh <39150378+Gingeh@users.noreply.github.com>
2022-08-01Disable "Check for Updates" if all mods are removedGingeh
Signed-off-by: Gingeh <39150378+Gingeh@users.noreply.github.com>
2022-08-01fix(ui): force redraw of mod list when (de)selecting a modflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-08-01feat(ui): remember mod download dialog's geometryflow
Makes it consistent with other modal dialogs. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-08-01feat: lazy-load CF mod descriptionsflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-08-01feat: add mod descriptions to CF modsflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-08-01feat: cache mod versionsflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-08-01refactor: use function cb instead of class cb in getVersionsflow
I've discovered even more functional programming! :^) Signed-off-by: flow <flowlnlnln@gmail.com>
2022-08-01feat: cache extra mod info (like links and body)flow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-08-01refactor: use function cb instead of class cb in getModInfoflow
I've discovered functional programming :^) This makes this route more fit for general use. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-08-01feat+refactor: clean up ProgressWidget and add progress indicatior toflow
mod downloader Signed-off-by: flow <flowlnlnln@gmail.com>
2022-08-01feat: add (semi) instant searching in mod downloaderflow
It has a delay of 350ms from the last typed character to search, in order to cache small changes while typing. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-08-01change: preserve search term across different mod providersflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-08-01feat+refactor: add shortcuts to mod downloader and clean upflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-08-01change: change button names to be more user-friendlyflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-08-01feat: display the 'body' of a MR mod on the mod downloaderflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-08-01feat: create delegate for project item viewsflow
This allows us to define custom painting for list view items. In particular, this is applied to the mod downloader, in order to allow displaying both the mod name and mod description, and settings their effects (like bold or underline) independent of each other. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-08-01fix(ui): missing tr() in mod download dialog's titleflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-07-31use BlockedModsDialog for ftb packs as wellkumquat-ir
Signed-off-by: kumquat-ir <66188216+kumquat-ir@users.noreply.github.com>
2022-07-31Merge remote-tracking branch 'origin/develop' into download-all-blockedkumquat-ir
Signed-off-by: kumquat-ir <66188216+kumquat-ir@users.noreply.github.com>
2022-07-30Trash instances instead of deleting (when possible) (#549)Ryan Cao
Squashed because of :pofat: commit history
2022-07-30Merge pull request #941 from Scrumplex/bump-cxx-standardLennyMcLennington
Bump to C++17
2022-07-28Merge pull request #699 from Scrumplex/resolve-ftb-mods-cftimoreo
2022-07-26Merge pull request #974 from flowln/accounts_qt6flow
Fix adding multiple accounts in Qt6
2022-07-26fix: progress dialog going away even if the task was not abortedflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-07-26refactor: shuffle some things around to improve readabilityflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-07-26fix(ui): pump events to show "Copying modpack files..." textflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-07-26chore: clean up FTBPackInstallTask a bit and connect missing signalsflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-07-26fix: add abort handlign in Flame's FileResolvingTaskflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-07-26chore: add license headersSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-07-26feat: implement mod resolving for FTBSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-07-26Merge pull request #961 from flowln/fix_resource_filterSefa Eyeoglu
2022-07-26fix: use const qualifier for operator==() and allow other comparisonsflow
This fixes an implicit behavior changed by C++17. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-07-26chore: add some debugging prints in AccountListflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-07-25Merge pull request #956 from flowln/jar_mods_aaLennyMcLennington
Fix segmentation fault when using jar mods
2022-07-24fix: pump events and do a queued start for concurrent tasksflow
Heavy workloads can consume a ton of time doing their stuff, and starve the event loop out of events. This adds an event processing call after every concurrent task has been completed, to decrease the event loop stravation on such loads. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-07-24feat: add hashing tasks to the sequential task in ModUpdateDialogflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-07-24refactor+feat: improve code separation in ensure metadataflow
... and avoid calculating the same hash multiple times Signed-off-by: flow <flowlnlnln@gmail.com>
2022-07-24refactor: add a HashUtils place for hashing stuffflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-07-24feat: do incremental calculation of CF's hashflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-07-24feat: use QIODevice for calcuating the JAR hash on Modrinthflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-07-24refactor: use QIODevice instead of a whole QByteArray for hash calc.flow
This allows Qt to do its thing and optimize the data gathering from the JAR. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-07-23fix: filter in external resource pages not workingflow
For some reason, using setFilterFixedString() doesn't seem to update the QRegularExpression object with a new value, instead leaving it empty. It updates QRegExp just fine, so maybe that's an Qt bug? o.O Anyway, using regex in the filter is kinda cool actually :D Signed-off-by: flow <flowlnlnln@gmail.com>