80 Commits

Author SHA1 Message Date
fieldOfView
6abf916ced Fix typing in __init__ methods to appease MYPY 2020-01-14 21:56:06 +01:00
Jaime van Kessel
81b33b8649
Add some missing typing 2020-01-10 14:58:53 +01:00
Jack Ha
2bd8350141 Added error checking, added typing, renamed function. CURA-5389 2018-07-12 14:06:34 +02:00
Lipu Fei
76417b7fb2 Hide materials belong to a to-be-removed package 2018-07-11 10:57:57 +02:00
Lipu Fei
cc5f35dd91 Rename some functions and variables 2018-07-10 14:57:01 +02:00
Jack Ha
513bd4f84a Renamed packageContainerIds to getPackageContainerIds. CURA-5389 2018-07-09 14:36:38 +02:00
Jack Ha
5af5aa9e35 Added reset profiles/materials and uninstall functionality and dialog. CURA-5389 2018-07-09 09:57:31 +02:00
Jack Ha
675c5064ed Added checkPackageUsageAndUninstall and the package usage check. No confirmation dialog yet 2018-07-05 11:47:06 +02:00
Lipu Fei
ef4218830b Fix package manager initialization 2018-06-11 09:37:45 +02:00
Jack Ha
96f2e6e1ed CURA-5402 hopefully solved merge conflicts 2018-06-06 14:39:53 +02:00
Lipu Fei
6818342b90 Merge remote-tracking branch 'origin/3.4' 2018-06-05 13:34:04 +02:00
Lipu Fei
4652c3be0f Always try to remove old package files before installing new
CURA-5442
2018-06-05 12:47:01 +02:00
Diego Prado Gesto
4af107dc81 Merge branch '3.4' of github.com:Ultimaker/Cura into 3.4 2018-06-05 11:00:54 +02:00
Diego Prado Gesto
1285e1b5e5 CURA-5357 Move the plugin info in packages.json only when the
installation succeeded.
2018-06-05 11:00:05 +02:00
Lipu Fei
4598b7a831 Merge remote-tracking branch 'origin/3.4' 2018-06-05 09:55:57 +02:00
Ian Paschal
096f0775a8 CURA-5442 Compare plugin registry to package manager 2018-06-04 11:49:42 +02:00
Jack Ha
c6ac344ed5 Merge branch '3.4' 2018-06-04 11:40:03 +02:00
Ian Paschal
74ba10444e CURA-5357 Prevent uninstall of plugins that are not-yet-installed 2018-06-01 14:31:52 +02:00
Lipu Fei
f395f1eebc
Merge branch 'master' into WIP_improve_initialization 2018-05-28 13:37:26 +02:00
Lipu Fei
43fcb183ae Remove unnecessary code
CURA-5296
2018-05-28 13:10:32 +02:00
Lipu Fei
ad131ab30c Fix downgrade packages to bundled version
CURA-5296
2018-05-28 11:18:24 +02:00
Ghostkeeper
0f4f55cf6b
Move CuraPackageManager to Uranium
This is just what's left that was specific to Cura.
2018-05-24 20:18:42 +02:00
Diego Prado Gesto
b7fe43e68c Merge branch 'master' into WIP_improve_initialization 2018-05-23 11:36:12 +02:00
Lipu Fei
eecbe20830 Enabled drag-n-drop for curapackages 2018-05-22 15:06:27 +02:00
Diego Prado Gesto
1bec6d7aa5 CURA-5164 Fix types 2018-05-16 17:26:56 +02:00
Ian Paschal
1d8a405e86 CURA-5357 Search for license files
The old code had the problem that by definition it skipped the `files/` folder and any other dir which of course is where the licenses are.

Now, so long as the license is always just called `LICENSE` (which is the convention in open source software), it can be located anywhere.
2018-05-16 15:16:16 +02:00
Ghostkeeper
eab150d7ee
Only look for user package management path in storage dirs
If we happen to find it in the installation (or some other place we can't write to) then it's going to crash. So don't do that.

Contributes to issue CURA-5364.
2018-05-16 09:29:03 +02:00
Diego Prado Gesto
ed6b63b41b Merge branch 'master' of github.com:Ultimaker/Cura 2018-05-15 16:47:42 +02:00
Diego Prado Gesto
bc965bacfc CURA-5358 Not use the prefix for installing packages and so no need to
rename directories for the packaged files
2018-05-15 16:46:07 +02:00
Jack Ha
9281c23555 Fix uninstallable user package which was also bundled; make update package somewhat better by not trying to uninstall builtin package 2018-05-15 16:23:54 +02:00
Aleksei S
50dabdbac8 Merge branch 'bugfix-toolbox-update' 2018-05-15 11:51:45 +02:00
Ghostkeeper
0aa1aaf11b
Fix loading packages.json when file doesn't exist yet
Contributes to issue CURA-5364.
2018-05-15 11:23:26 +02:00
Ghostkeeper
0a9f389396
Search for bundled packages file in all search paths
For this we need to rename bundled_packages to disambiguate between that and the other packages.json file for user-installed packages.

Contributes to issue CURA-5364.
2018-05-15 11:14:17 +02:00
Jack Ha
49c4f66d95 Ugly fix for uninstalling installed packages, but not uninstalling bundled packages. 2018-05-15 10:50:33 +02:00
Jack Ha
1f088aabc4 Cleanup and simplify toolbox plugin update 2018-05-14 16:11:44 +02:00
Jack Ha
0f0b6a9712 Fix/Implement update in toolbox 2018-05-14 16:01:59 +02:00
Ian Paschal
dd14a8e685 CURA-5296 Better finding for packages.json 2018-05-14 14:44:40 +02:00
Diego Prado Gesto
04534936c3 CURA-5358 Change the name in the dict to search for the 'qualities' that
are inside a curapackage.
2018-05-14 11:36:19 +02:00
Diego Prado Gesto
527f269b5d Fix an issue that kept the plugins in the "installed" list despite of
already being removed from the data folder.
2018-05-11 16:32:31 +02:00
Diego Prado Gesto
7d725936ef Clean up the package manager a bit:
- Remove an unused method.
- Safely check if the plugin info exist
2018-05-11 11:43:34 +02:00
Jack Ha
45fc8480a1 CURA-5296 fix first startup not loading bundled packages 2018-05-09 13:18:02 +02:00
Ian Paschal
4a78825f55 CURA-5296 Delete package info individually 2018-05-08 17:03:09 +02:00
Ian Paschal
d6ad8ed09e CURA-5296 Move installed plugins to "installed" dict 2018-05-08 16:52:09 +02:00
Ian Paschal
db15b1c2a1 CURA-5296 Fix packages.json path 2018-05-08 16:28:28 +02:00
Ian Paschal
0accdc6320 Cura-5296 Use separate packages.json files in app and user data 2018-05-08 11:54:19 +02:00
Ian Paschal
4cfd047b11 CURA-5296 Simplifications to CuraPackageManager 2018-05-07 15:47:03 +02:00
Ian Paschal
4a2e36978e Merge remote-tracking branch 'origin/master' into CURA-5296_bundled_packages 2018-05-04 15:00:40 +02:00
Jaime van Kessel
7d2257838b Added missing typing 2018-05-03 20:42:06 +02:00
Jaime van Kessel
34483b4b34 Merge branch 'master' of github.com:Ultimaker/Cura 2018-05-03 20:27:35 +02:00
Jaime van Kessel
21e2fcbcf6 Also added missing context usage of archive 2018-05-03 20:27:02 +02:00