Nino van Hooff
9b79b70f2b
Merge branch 'CURA-7290_auto_sync_packages' into CURA-7290_manual_account_sync
...
# Conflicts:
# cura/API/Account.py
# plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py
2020-05-06 16:03:37 +02:00
Nino van Hooff
3ac0e7bed9
Consider all packages when calculating account discrepancies
...
Not just the user-subscribed ones
CURA-7245
2020-05-06 16:01:36 +02:00
Nino van Hooff
bfae7e9fb1
Replace some hard-coded sync states
...
CURA-7290
2020-05-06 12:54:07 +02:00
Remco Burema
2687578a86
Merge pull request #7624 from Ultimaker/CURA-7022_Add_cloud_printer_within_add_a_connected_printer
...
Cura 7022 add cloud printer within add a connected printer
2020-05-06 11:13:27 +02:00
Nino van Hooff
5b245434d0
Add _last_check_packages type hint
...
CURA-7290
2020-05-04 17:32:54 +02:00
Nino van Hooff
eac884fcd2
Convert SYNC_STATES to Enum
...
CURA-7290
2020-05-04 17:26:38 +02:00
Nino van Hooff
88ff68e40c
Also check for package updates automatically
...
Moves the 30-second sync timer from CloudOutputDeviceManager to
Account and subscribes CloudPackageChecker to the timer.
CURA-7290
2020-05-04 16:56:09 +02:00
Nino van Hooff
eeea1692fd
Register CloudPackageChecker as Account sync service
...
CURA-7290
2020-05-04 14:08:36 +02:00
Nino van Hooff
049c1946d4
Create Account sync state interface to allow for multiple sync services
...
Needed to add the package sync
CURA-7290
2020-05-04 13:52:40 +02:00
Kostas Karmas
69f23eca94
Double the maximum deviation again in the versionUpgrade460to462
...
CURA-7421
2020-05-04 13:22:22 +02:00
Nino van Hooff
81d02d5d58
Implement printer cloud sync error state
...
CURA-7290
2020-05-04 13:19:16 +02:00
Kostas Karmas
96fde43ae8
Up the setting version inside the VersionUpgrade460to462
...
CURA-7421
2020-05-04 13:12:17 +02:00
Kostas Karmas
aab2257574
Up the setting version to 14 in CuraApplication
...
CURA-7421
2020-05-04 13:06:19 +02:00
Kostas Karmas
74bc40eb90
Add version upgrade 460to462
...
CURA-7421
2020-05-04 13:03:21 +02:00
Kostas Karmas
524a072420
Merge version upgrade 45to46 with 46to47
...
CURA-7421
2020-05-04 13:00:17 +02:00
Nino van Hooff
0aed6d3731
Connect the manual sync button
...
CURA-7290
2020-05-01 15:56:09 +02:00
Jaime van Kessel
245a4435e1
Also handle sceneChanged when it's from the root
...
The rest of the code also seems to expect that
2020-05-01 14:39:23 +02:00
Kostas Karmas
80a4cfbd75
Remove duplicated line
...
This line is called both outside and inside of _setOutputDeviceMetadata(...)
CURA-7055
2020-04-30 14:03:34 +02:00
Jaime van Kessel
db7429488d
Merge branch 'del_scripts_pycache' of github.com:Ultimaker/Cura
2020-04-30 13:50:57 +02:00
Kostas Karmas
b008f1e823
Merge branch 'master' into CURA-7022_Add_cloud_printer_within_add_a_connected_printer
2020-04-29 15:37:53 +02:00
Kostas Karmas
61e2cc1193
Fix missing type for result
2020-04-29 15:33:28 +02:00
Jaime van Kessel
1775903335
Merge branch 'CURA-7404_fix_xray_green' of github.com:Ultimaker/Cura
2020-04-29 14:59:53 +02:00
Ghostkeeper
dfa021ab20
Fix upgrade of preference if visible settings was not modified
...
Oops. Small oversight. This could lead to the preferences file being erased completely.
Found during work on Sentry issue CURA-NH.
2020-04-29 14:10:07 +02:00
Ghostkeeper
abffb6c26c
Don't crash when reading corrupt 3MF files
...
Otherwise it would crash with a BadZipFile error. We should be robust against that. This will trigger a generic message that we couldn't read that file to the user, and put more information in the log.
Fixes Sentry issue CURA-NH.
2020-04-29 14:07:04 +02:00
Ghostkeeper
dcac9b6a87
Prevent a crash when retrying even though it completed in the meanwhile
...
Fixes Sentry issue CURA-NA.
2020-04-29 14:07:03 +02:00
Ghostkeeper
bf3d6c67d9
Check the bounding box before using it
...
Some objects don't have a bounding box if they are improperly constructed by a plug-in.
Fixes Sentry issue CURA-N3.
2020-04-29 14:07:03 +02:00
Jaime van Kessel
084e80bcda
Only connect a cloud printer if it's the active one
...
By splitting up the correctly setting of metadata and actually
connecting, the distinction can be made.
CURA-7055
2020-04-29 13:48:06 +02:00
Kostas Karmas
eda868f938
Make the discovered cloud printers model generic
...
Removed the dependency of the DiscoveredCloudPrintersModel on CloudOutputDevice,
which is Ultimaker specific. This can allow even external plugins to add to this
model in the future.
CURA-7022
2020-04-29 13:31:45 +02:00
Remco Burema
4c4e611629
Fix x-ray error color.
...
X-ray errors showed as green and translucent instead of read and solid. Now fixed.
CURA-7407
2020-04-29 12:06:20 +02:00
Kostas Karmas
e4a6fe954d
Merge branch 'master' into CURA-7022_Add_cloud_printer_within_add_a_connected_printer
2020-04-28 17:45:55 +02:00
Kostas Karmas
ea404af973
Transfer cloudPrintersDetectedChanged in DiscoveredUltimakerCloudPrintersModel
...
CURA-7022
2020-04-28 14:19:28 +02:00
Remco Burema
aaee651369
Fix comment.
...
a smaller part of CURA-7404
2020-04-28 13:28:02 +02:00
Remco Burema
242e0d403e
Clean pycache for scripts as well.
2020-04-28 12:11:55 +02:00
Kostas Karmas
6583f5f5ac
Reset the model when pressing the Add cloud printer button
...
CURA-7022
2020-04-28 12:08:48 +02:00
Jaime van Kessel
174b58374a
Remove unneeded unit tests
...
The code was moved to uranium, so no need to test them in a plugin.
In some cases they were also testing a specific implementation artifact and not
actual expected behavior.
CURA-7388
2020-04-28 10:23:36 +02:00
Kostas Karmas
49cb1d325e
Update the DiscoveredCloudUltimakerPrinters model
...
Whenever new cloud devices are detected on the ultimaker account, add
them to the model
CURA-7022
2020-04-24 19:17:34 +02:00
Remco Burema
1475a999b0
Merge pull request #7575 from Ultimaker/CURA-7367_update_image_and_copy_in_enterprise_version
...
Cura 7367 update image and copy in enterprise version
2020-04-23 16:08:06 +02:00
Ghostkeeper
b21b36924c
Merge branch 'speed_up_version_upgrade'
2020-04-23 15:39:38 +02:00
Nino van Hooff
3ba284b36c
Merge pull request #7539 from Ultimaker/CURA-7019_Move_sign_in_screen_in_front_of_add_printer_in_first_run_wizard
...
Cura 7019 move sign in screen in front of add printer in first run wizard
2020-04-23 14:56:31 +02:00
Ghostkeeper
75aafa1e5c
Don't crash if rendering without any window
...
Probably it'll still crash somewhere else then, but we'll rely on Sentry to find that for us.
Fixes Sentry issue CURA-KW.
2020-04-23 13:41:06 +02:00
Ghostkeeper
29d2e5c921
Don't crash if USB device is taken over by other applications or breaks
...
If it happens at just the wrong moment, Cura could crash. Hopefully no longer, though I fear that now it would maybe crash somewhere else with the same error then. We'll find out through new error reports, I hope.
Fixes Sentry issue CURA-K8.
2020-04-23 13:07:48 +02:00
Nino van Hooff
971d8cd8e2
Remove leftover debug code from ChangeAtZ.py
...
CURA-7146
2020-04-23 11:48:50 +02:00
Jaime van Kessel
0bf862f9a9
Merge branch 'master' of github.com:Ultimaker/Cura
2020-04-23 11:39:04 +02:00
Jaime van Kessel
45dc8bcc68
Fix warnings about output device not being detected
...
CURA-7055
2020-04-23 11:38:34 +02:00
Ghostkeeper
add9be387b
Fix crash when creating a socket before the plug-in is fully registered
...
The plug-in ID is set once the register function is completed, so after initialisation. If the _createSocket function is called in between, Cura would crash.
I don't know why the _createSocket function would be called in between, but possibly another plug-in causes an event that calls it since it's being called on many events (everything that would initiate a reslice).
Fixes Sentry issue CURA-K4.
2020-04-23 11:38:27 +02:00
Ghostkeeper
d9cdea9496
Don't crash when material file is missing
...
This could happen because a material is deleted right at that moment, since the SendMaterialJob is done on a separate thread.
Fixes Sentry issue CURA-JZ.
2020-04-23 11:10:52 +02:00
Jaime van Kessel
6746106608
Also connect with cloudOutput device if it was added
...
CURA-7055
2020-04-23 11:07:21 +02:00
Jaime van Kessel
7c7c1ad96c
Fix remote_clusters not being added in second boot
...
CURA-7055
2020-04-23 10:58:16 +02:00
Kostas Karmas
1602b71841
Inform the Cloud page about new cloud printers
...
Properly close the welcome screen if the user has signed in and has
cloud printers linked to his/her account. If he doesn't have any, move
to the next page of the welcome wizard.
CURA-7019
2020-04-23 09:59:32 +02:00
Kostas Karmas
1262d1f641
Activate the first available Cloud printer if the activeMachine is empty
...
CURA-7019
2020-04-22 18:31:04 +02:00