Commit Graph

37 Commits

Author SHA1 Message Date
arthomnix
858487521e NOISSUE Escape quotes in paths
Just in case the user decides to place MMC in a path containing quotes.
.desktop files appear to require two backslashes to escape quotes, testing on other desktop environments would be appreciated to make sure this isn't just a KDE-specific bug
2022-11-20 00:04:03 +01:00
arthomnix
08dd08afc1 NOISSUE Enclose all arguments in quotes, fix batch scripts 2022-11-20 00:04:03 +01:00
arthomnix
6307689cf1 NOISSUE Use .command extension for shortcut scripts on macOS
This means that the script will run when clicked, instead of being opened in a text editor
2022-11-20 00:04:03 +01:00
arthomnix
86f68389c9 NOISSUE Add button to copy MSA code 2022-11-20 00:04:03 +01:00
arthomnix
2517671396 NOISSUE Use current working directory instead of applicationDirPath in shortcut creation
This fixes issues with official Linux builds which place the executable in its own bin directory
2022-07-19 20:43:54 +01:00
Petr Mrázek
e5c962b7b9 NOISSUE acknowledge the truth 2022-07-19 19:04:29 +02:00
arthomnix
844ed61aa4 NOISSUE Yeet the version check 2022-07-19 17:14:46 +01:00
Petr Mrázek
bec8293f28
Merge pull request #4808 from arthomnix/feature-create-shortcut
NOISSUE (Re-)implement the ability to create instance shortcuts
2022-07-19 17:25:35 +02:00
arthomnix
ffec1e1930 GH-4812 Set placeholder even if the user has changed the name 2022-07-11 19:55:36 +01:00
arthomnix
ec897aee95 GH-4812 More improvements related to instance name
Selects text on focus rather than selecting text and focusing by default. Text is not selected if the user has changed the name from the default.
If the user changes the instance name, don't change it when they select a new version or modpack.
Add a reset button that changes the instance name back to the default for the selected version/pack, and resets the flag that stops the name from being changed upon selecting a new version/pack.
2022-07-11 19:51:31 +01:00
arthomnix
00589b247a GH-4812 Prefill instance name to allow making adjustments
Fills the instance name in instead of just setting a placeholder. This allows adjustments to be made to the suggested name without typing the whole thing out.
The text is selected by default so that typing will overwrite the text, but users who want to adjust the default name instead of typing their own can deselect the text.
The placeholder name is still set so it is still visible if the user deletes the text.
Also sets the focus to the instance name textbox by default, whereas previously it was on the group name - this is required so the text gets overwritten on typing but also makes more sense generally.
Closes issue #4812.
2022-07-11 18:02:20 +01:00
arthomnix
518b19e667 NOISSUE shortcut creation: enclose paths in quotes 2022-07-06 08:03:04 +01:00
arthomnix
79910e3542 NOISSUE shortcut creation: put file dialog in save mode
This makes sure that the user is prompted if they are about to overwrite a file
2022-07-03 19:53:45 +01:00
arthomnix
0a2ad17f06 NOISSUE shortcut creation: add comments and todo 2022-07-03 18:11:18 +01:00
arthomnix
7df413db1a NOISSUE shortcut creation: blacklist versions by date instead of regex 2022-07-03 16:57:20 +01:00
arthomnix
6faa0ef711 NOISSUE shortcut creation: reload pack profile before checking version 2022-07-03 16:43:23 +01:00
arthomnix
363588789e NOISSUE shortcut creation: fix version check 2022-07-03 16:30:30 +01:00
arthomnix
2dc44b3ff5 NOISSUE fix build 2022-07-03 16:21:21 +01:00
arthomnix
7938585abb NOISSUE shortcut creation: add version blacklist for joining server on launch
These versions are known to crash when joining a server on launch (see MC-145102 and MC-228828)
2022-07-03 15:47:54 +01:00
arthomnix
bbdbe47e72 NOISSUE actually use the directory as the working directory 2022-07-03 14:19:50 +01:00
arthomnix
75b8765604 NOISSUE shortcut creation: set working directory in other shortcut types 2022-07-03 14:00:55 +01:00
arthomnix
7217e3991a NOISSUE shortcut support: set working directory in .desktop files 2022-07-03 13:45:58 +01:00
arthomnix
bf5be5568e NOISSUE curly brace formatting 2022-07-03 13:17:25 +01:00
arthomnix
018e6229ca NOISSUE shortcut creation: add windows .lnk support 2022-07-03 13:07:21 +01:00
arthomnix
21413b964a NOISSUE replace copyright header that got removed by qt designer 2022-07-03 09:56:16 +01:00
arthomnix
6a3ff58c8c NOISSUE shortcut creation: add option to create launch scripts
This allows shortcuts to be created on Macs (which don't have a concept of desktop shortcuts) as well as Linux systems that don't support the desktop file specification. Also included a windows batch file implementation.
2022-07-03 09:52:56 +01:00
arthomnix
645bc3f445 NOISSUE shortcut creation: set default shortcut filename 2022-07-03 08:33:46 +01:00
arthomnix
a0c44f7062 NOISSUE shortcut creation: add icons on linux 2022-07-03 08:27:13 +01:00
arthomnix
5d14dede50 NOISSUE WIP implementation of the ability to create instance shortcuts
Currently Linux-only and lacking some features
2022-07-03 07:54:20 +01:00
Petr Mrázek
66c6e6e05d NOISSUE disambiguate Json parsing calls 2022-05-29 04:58:42 +02:00
Petr Mrázek
41e5b3b628 NOISSUE Add FTB App import page to new instance dialog 2022-05-28 22:42:09 +02:00
Petr Mrázek
0a827ba70e NOISSUE Remove FTB and Curse integration
This has been requested by Slowpoke, on behalf of both FTB and OverWolf.

Import from locally installed packs from the official clients will be
the replacement, but for now, you will have to do that manually.

It was nice while it lasted.
2022-05-19 20:43:50 +02:00
Petr Mrázek
ceaea5db2f NOISSUE Redo Curse import on top of modpacks.ch API 2022-05-17 00:22:23 +02:00
kb1000
831b76bb78
Add support for importing Modrinth packs from files 2022-05-11 23:51:33 +02:00
Petr Mrázek
9579231ccc NOISSUE fix build and change how NetJob is used
Feed it network upfront...
2021-12-31 05:27:59 +01:00
Petr Mrázek
3c46d8a412 GH-4071 Heavily refactor and rearchitect account system
This makes the account system much more modular
and makes it treat errors as something recoverable,
unless they come directly from the MSA refresh token
becoming invalid.
2021-12-04 01:18:05 +01:00
Petr Mrázek
b258eac215 NOISSUE continue reshuffling the codebase 2021-11-22 03:55:16 +01:00