Commit graph

6121 commits

Author SHA1 Message Date
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
Diego Prado Gesto
43657010ba CURA-5164 The Preferences is not a singleton class anymore since in some point
several instances need to be created.

- In the ThreeMFWorkspaceReader we need to create some temporal
instances of Preferences that makes it not singleton anymore.

- The current preferences are kept in the Application class and so all
the calls to the preferences are changed to get the preferences from
Application.

- The method getInstance in Preferences is kept as deprecated since some
external plugins.
2018-05-11 08:50:42 +02:00
ChrisTerBeke
5b8f5e7e08 Merge branch 'master' into feature-backup-manager 2018-05-09 17:58:33 +02:00
ChrisTerBeke
bc424509d9 Fix docstring 2018-05-09 17:58:14 +02:00
Jack Ha
6b44ec8e4a CURA-5296 undo add version upgrade to required plugins 2018-05-09 14:24:10 +02:00
Jack Ha
cf61059449 CURA-5296 added version upgrades to required plugins 2018-05-09 14:19:30 +02:00
Jack Ha
45fc8480a1 CURA-5296 fix first startup not loading bundled packages 2018-05-09 13:18:02 +02:00
ChrisTerBeke
703e52c0c7 Ignore cura.cfg in the backups as it might contain secret data from plugins 2018-05-09 11:25:19 +02:00
ChrisTerBeke
c90a958eaf Merge branch 'master' into feature-backup-manager 2018-05-08 17:27:54 +02:00
Ian Paschal
7ac7f91d5d
Merge pull request #3790 from Ultimaker/CURA-5296_bundled_packages
Cura-5296 Make bundled resources visible to CuraPackageManager
2018-05-08 17:03:55 +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
ChrisTerBeke
c827703417 Fix ignoring files 2018-05-08 13:47:02 +02:00
ChrisTerBeke
1b1d99c4bc Ignore cura.log in backups 2018-05-08 13:22:17 +02:00
ChrisTerBeke
62c4a88168 Merge branch 'master' into feature-backup-manager 2018-05-08 12:50:31 +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
ChrisTerBeke
a4882d8f83 Fixes for archiving paths in backup, fake meta data 2018-05-08 11:46:09 +02:00
Diego Prado Gesto
42ecb12614 CURA-5164 Fix typo in the method signature 2018-05-08 11:16:00 +02:00
Aleksei S
9779c41071 Use MimeTypeDatabase to find loaded file extension and set proper project name
CURA-5323
2018-05-08 10:47:59 +02:00
ChrisTerBeke
ce0c14451f Fix spelling in API docs 2018-05-07 17:31:10 +02:00
Ian Paschal
6dbbfe91db Merge remote-tracking branch 'origin/master' into CURA-5296_bundled_packages 2018-05-07 15:47:28 +02:00
Ian Paschal
4cfd047b11 CURA-5296 Simplifications to CuraPackageManager 2018-05-07 15:47:03 +02:00
ChrisTerBeke
936de402ec use bytes to pass backup file around, generate in memory, small fixes 2018-05-07 15:40:47 +02:00
ChrisTerBeke
64819d517e Start implementing backups functionality 2018-05-07 15:09:08 +02:00
Diego Prado Gesto
a6676fb477 Merge branch 'master' of github.com:Ultimaker/Cura 2018-05-07 12:57:33 +02:00
Diego Prado Gesto
b576423747 Adapt ovewritten method signature 2018-05-07 11:49:30 +02:00
ChrisTerBeke
32e2723c26 Start class layouts for backups and plugins API 2018-05-07 10:55:24 +02:00
Jack Ha
467e814f88 Merge branch 'master' of github.com:Ultimaker/Cura 2018-05-07 10:30:50 +02:00
Jack Ha
00d8427e42 Add sanity check for GlobalStack CURA-5045 2018-05-07 10:30:45 +02:00
Ian Paschal
4a2e36978e Merge remote-tracking branch 'origin/master' into CURA-5296_bundled_packages 2018-05-04 15:00:40 +02:00
Aleksei S
4a26cf0cbd Merge branch 'master' of github.com:Ultimaker/cura 2018-05-04 10:30:03 +02:00
Aleksei S
dfd9283ed5 Project name after importing
CURA-5323
2018-05-04 10:29:09 +02:00
Lipu Fei
051dd7a6e9 WIP: Make application initialization and start up more clear
- Create SingleInstance class to handling single instance stuff.
 - Instead of calling getInstance() everywhere, initialize each object
   explicitly in order when application starts and getInstance()s do not
   create instances any more and they merely return the created
   instances.
 - Only set initial values in construtor functions __init__(). Move the
   initialization of context-aware (i.e. things that depend on other
   things) to separate functions.
 - Split application creation and initialziation into several steps and
   them should be called explicitly in the correct order.
2018-05-04 09:57:02 +02:00
Diego Prado Gesto
61a6a176b9 Merge branch 'master' of github.com:Ultimaker/Cura 2018-05-04 09:09:20 +02:00
Jaime van Kessel
7c80bc203c Fixed bunch of wrong / missing typing 2018-05-03 21:14:06 +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
Ruben D
f3be394080
Properly get the application
Why are we getting this passed via parent???
2018-05-03 20:26:20 +02:00
Jaime van Kessel
7665f8a7cb Reading packages from archive now uses With context 2018-05-03 20:22:38 +02:00
Aleksei S
defb22dc07 Keep 'dot' in file name for type *.gcode.gz
CURA-5323
2018-05-03 18:11:45 +02:00
Diego Prado Gesto
a1e6792664 Set the LocalContainerProvider as a required plugin. 2018-05-03 18:03:30 +02:00
Diego Prado Gesto
5b8f426ea2 Merge branch 'master' of github.com:Ultimaker/Cura 2018-05-03 16:14:34 +02:00
Diego Prado Gesto
0d56d72760 CURA-5234 Make use of the function to add wrong containers to the set. 2018-05-03 16:14:08 +02:00
Mark
ce7f64d8e3 ignore empty directories in plugin folder 2018-05-03 14:36:08 +02:00
ChrisTerBeke
80d7dc18cb Fix is_dir for Python 3.5 2018-05-03 13:37:33 +02:00
Ian Paschal
45e32e6c05 CURA-5296 Quick hack to test using a list of IDs 2018-05-03 09:12:35 +02:00
Aleksei S
b1c9b04a7a Fix: filenames cut by first dot, remove only file extension because file might have dot in name
CURA-5323
2018-05-02 17:17:45 +02:00