25609 Commits

Author SHA1 Message Date
jelle Spijker
b046b52cd9
poedit changes
CURA-8153
2021-04-16 19:27:48 +02:00
Jelle Spijker
c4a4a33991
Merge pull request #9563 from Patola/4.9
Updated pt_BR translation
2021-04-16 19:22:01 +02:00
Kostas Karmas
07594f17a7 Fix setting empty auth tokens in the keyring on startup
When Cura is starting up, it reads the authentication data from the preferences (cura.cfg). If
the auth tokens have previously been stored in the keyring, it means that their values will be null
in the cura.cfg file. Therefore, on startup, Cura reads the tokens as none from the preferences and
then sets the empty values in the keyring as tokens. This leads to the user being signed off every
time Cura restarts on Mac.

On Windows, the access token was still stored in the preferences, so on startup it was safe. The
refresh token, on the other hand, had the same issue as on Mac, which means that on startup it was
read as None from the cura.cfg and was stored in the keyring as an empty string. This meant that,
even though on startup (on windows) the user was kept signed in, the next time Cura was attempting
to refresh the access token (after 7-8 minutes), it wouldn't be able, since its refresh token was
read as "" from the keyring. Also, if the user would close Cura and reopen it after 10 minutes
(so after the access token had expired) then they would be signed off on windows too.

This commit fixes that by making sure that if the given value of the refresh and access tokens are
empty, then they will not be stored in the keyring.

CURA-8178
2021-04-16 17:05:08 +02:00
Kostas Karmas
d84743990d Merge branch '4.9' of https://github.com/Ultimaker/Cura into 4.9 2021-04-16 16:36:54 +02:00
Kostas Karmas
00ade8be3a Fix crashing if the quality_type_to_apply is None
Fixes sentry issue CURA-24D
2021-04-16 16:35:44 +02:00
Remco Burema
ecd70a98b9
Merge pull request #9586 from Ultimaker/CURA-8145_fix_animated_images
Support animated images in what's new pages
2021-04-16 16:33:23 +02:00
Ghostkeeper
2ecdd799c6
Support animated images in what's new pages
Let's hope they don't go too crazy with the file size of these. But animated GIFs are now supported here.

Fixes CURA-8145.
2021-04-16 16:13:52 +02:00
Kostas Karmas
df5c52d1c6 Fail gracefully if writing the backup to a temp file crashes
Fixes sentry issue CURA-21W
2021-04-16 15:55:06 +02:00
Kostas Karmas
6b1df6c7cb Update 4.9 translations after verification with PoEdit
CURA-8153
2021-04-16 15:18:34 +02:00
jelle Spijker
4a574a5ae1
Smartling translations
CURA-8153
2021-04-16 14:43:03 +02:00
Ghostkeeper
0d29610899
Catch environment errors when restoring back-ups
There could be an environment error when saving that file because of access rights or insufficient disk space. Catch that error and display an error message to the user. The log then contains more information on exactly why it failed, but the user just knows it fails.

Fixes Sentry issue CURA-21W.
2021-04-16 14:14:21 +02:00
Ghostkeeper
acb0c57026
Merge branch '4.9' 2021-04-16 12:05:22 +02:00
Ghostkeeper
544b267447
Merge branch 'CURA-8004_fix_wrong_uploaded_print_job_cache' into 4.9 2021-04-16 12:05:06 +02:00
Ghostkeeper
972e024a43
Add typing for get/setShowTravelMoves
This one was missing. The rest already seems to have typing.
2021-04-15 19:31:57 +02:00
Ghostkeeper
cd551555ef
Merge branch 'master' into layer_view_statistic_limits_only_visible 2021-04-15 19:30:56 +02:00
VOLUMIC
071f2b8248
Delete resources/materials directory 2021-04-15 18:03:19 +02:00
Remco Burema
1eb1a943b2
Process supposed to stop when already sending a job.
When using the visibility of the progress bar to detect if a job is already being sent, then make actually sure the progress bar is visible the moment the job starts, not at some unspecified time later in a method that might not even trigger if there is already a mesh ... so it's unlikely to even work, since the thing it was intended to prevent _very_ likely has the same mesh anyway.

CURA-8004
2021-04-15 16:53:01 +02:00
Ghostkeeper
4bf440b86e
Squashed commit of the following:
commit 21706720d320f79aa513dcbfb41b1f5e3849aa6d
Author: CrissR <79998803+criss-rasc@users.noreply.github.com>
Date:   Thu Apr 1 09:55:38 2021 +0300

    Update jgaurora_a6_extruder_0.def.json

commit de8ea9f8bebe5901541db3487f2f54f2d8fd3f6f
Author: CrissR <79998803+criss-rasc@users.noreply.github.com>
Date:   Thu Apr 1 09:44:01 2021 +0300

    Update jgaurora_a6.def.json

commit d17d231fdda400e937a1a34eb462c78072fa30f1
Author: CrissR <79998803+criss-rasc@users.noreply.github.com>
Date:   Thu Apr 1 09:31:24 2021 +0300

    Update jgaurora_a6_extruder_0.def.json

commit 00522440d762f24076db16317c8049c5d004c255
Author: CrissR <79998803+criss-rasc@users.noreply.github.com>
Date:   Wed Mar 31 18:38:49 2021 +0300

    Update jgaurora_a6_extruder_0.def.json

    Added quality_definition for extruder

commit 87cc97a426421c9010591338c582efe763fe5928
Author: criss-rasc <79998803+criss-rasc@users.noreply.github.com>
Date:   Fri Mar 5 10:13:11 2021 +0200

    Update jgaurora_a6_0.28_fast.inst.cfg.txt

commit 9d94002f5a0a621003f1965dfa2cde0cd768e983
Author: criss-rasc <79998803+criss-rasc@users.noreply.github.com>
Date:   Fri Mar 5 10:12:42 2021 +0200

    Update jgaurora_a6_0.24_draft.inst.cfg

commit 57238e31f51d38b27325d140c4d94c4a91981f21
Author: criss-rasc <79998803+criss-rasc@users.noreply.github.com>
Date:   Fri Mar 5 10:12:10 2021 +0200

    Update jgaurora_a6_0.2_normal.inst.cfg

commit 6e6e84786933434990ce75230d02cf94a3297fae
Author: criss-rasc <79998803+criss-rasc@users.noreply.github.com>
Date:   Fri Mar 5 10:10:59 2021 +0200

    Update jgaurora_a6_0.16_optimal.inst.cfg

commit 5cc3021eb25a681a46c72fe988ba046d29100d9d
Author: criss-rasc <79998803+criss-rasc@users.noreply.github.com>
Date:   Fri Mar 5 10:05:28 2021 +0200

    Update jgaurora_a6_0.12_detail.inst.cfg

commit 3eacc21bb54ae4c762c09db0dafe40aa1800d36b
Author: criss-rasc <79998803+criss-rasc@users.noreply.github.com>
Date:   Fri Mar 5 09:51:08 2021 +0200

    Update jgaurora_a6.def.json

commit 71bb0e86c5d4427a209ed1c7c578209c78f03ea2
Author: criss-rasc <79998803+criss-rasc@users.noreply.github.com>
Date:   Thu Mar 4 13:47:17 2021 +0200

    Update jgaurora_a6.def.json

commit 1971b94784a869184bbf7de1bacd81ddc323c933
Author: criss-rasc <79998803+criss-rasc@users.noreply.github.com>
Date:   Thu Mar 4 10:27:24 2021 +0200

    Update jgaurora_a6.def.json

commit 26e849a2b86f4303c8735684706c18d2ea64f79a
Author: criss-rasc <79998803+criss-rasc@users.noreply.github.com>
Date:   Thu Mar 4 09:48:12 2021 +0200

    Update jgaurora_a6_extruder_0.def.json

commit 3adeffa563ad23f8ce4096482c09f4ed201a5187
Author: criss-rasc <79998803+criss-rasc@users.noreply.github.com>
Date:   Thu Mar 4 09:41:18 2021 +0200

    Update jgaurora_a6.def.json

commit 13475dd2f22b09f3b6ad2bf227ded43d3f31dd03
Author: criss-rasc <79998803+criss-rasc@users.noreply.github.com>
Date:   Thu Mar 4 09:15:41 2021 +0200

    Add files via upload

    Fast 0.28 mm layer height

commit aa81a7bb6dc2caa0e36ba2ca9cd9052515643ff1
Author: criss-rasc <79998803+criss-rasc@users.noreply.github.com>
Date:   Thu Mar 4 09:13:54 2021 +0200

    Update jgaurora_a6_0.24_draft.inst.cfg

commit 382486d598ff9482a90aaadb7f45606aeaa7f3c5
Author: criss-rasc <79998803+criss-rasc@users.noreply.github.com>
Date:   Thu Mar 4 09:13:02 2021 +0200

    Update jgaurora_a6_0.2_normal.inst.cfg

commit 6ab2b608ac498f0f9288565a78755fc16645d7d5
Author: criss-rasc <79998803+criss-rasc@users.noreply.github.com>
Date:   Thu Mar 4 09:11:40 2021 +0200

    Update jgaurora_a6_0.16_optimal.inst.cfg

commit cd270c4f6be4edf59a07e78bfb270676639dc79b
Author: criss-rasc <79998803+criss-rasc@users.noreply.github.com>
Date:   Thu Mar 4 09:10:38 2021 +0200

    Update jgaurora_a6_0.12_detail.inst.cfg

commit 8051192a05a67806d8b8978e924e995b0f2919a1
Author: criss-rasc <79998803+criss-rasc@users.noreply.github.com>
Date:   Wed Mar 3 20:32:20 2021 +0200

    Delete jgaurora_a6_0.2_normal.inst.cfg

commit 52587c006041f1629bb6137856206de697c3e0d0
Author: criss-rasc <79998803+criss-rasc@users.noreply.github.com>
Date:   Wed Mar 3 20:32:07 2021 +0200

    Delete jgaurora_a6_0.24_draft.inst.cfg

commit e84701638cdb01ea1673f98358eecc2a7b875691
Author: criss-rasc <79998803+criss-rasc@users.noreply.github.com>
Date:   Wed Mar 3 20:31:57 2021 +0200

    Delete jgaurora_a6_0.16_optimal.inst.cfg

commit 8fd8221dd3816df679c7400ec02db399e222d54b
Author: criss-rasc <79998803+criss-rasc@users.noreply.github.com>
Date:   Wed Mar 3 20:31:47 2021 +0200

    Delete jgaurora_a6_0.12_detail.inst.cfg

commit 576661dade0d1101c2113db7c87b6a51d813e690
Author: criss-rasc <79998803+criss-rasc@users.noreply.github.com>
Date:   Wed Mar 3 20:31:36 2021 +0200

    Delete jgaurora_a6_extruder_0.def.json

commit ad807f318a98641b7f7cf78238b9f557ca4411a6
Author: criss-rasc <79998803+criss-rasc@users.noreply.github.com>
Date:   Wed Mar 3 20:31:25 2021 +0200

    Delete jgaurora_a6_platform.stl

commit 6fd7d9f640b3383cd511e3bfeed4cc0184b24393
Author: criss-rasc <79998803+criss-rasc@users.noreply.github.com>
Date:   Wed Mar 3 20:31:10 2021 +0200

    Delete jgaurora_a6.def.json

commit e7f83a9e0686c4964c9d74da3c76ec8dff91254c
Author: criss-rasc <79998803+criss-rasc@users.noreply.github.com>
Date:   Wed Mar 3 20:24:16 2021 +0200

    Update jgaurora_a6_0.2_normal.inst.cfg

commit 6ba89ba958418a0dad4e703191032fbd855e8994
Author: criss-rasc <79998803+criss-rasc@users.noreply.github.com>
Date:   Wed Mar 3 20:23:59 2021 +0200

    Update jgaurora_a6_0.24_draft.inst.cfg

commit 366249a5de6f7602bdddd8cfb9f1b7c8ef4c3ac5
Author: criss-rasc <79998803+criss-rasc@users.noreply.github.com>
Date:   Wed Mar 3 20:23:42 2021 +0200

    Update jgaurora_a6_0.16_optimal.inst.cfg

commit 2328a8e2042e1ca850974fc9f76c5e802f59f68b
Author: criss-rasc <79998803+criss-rasc@users.noreply.github.com>
Date:   Wed Mar 3 20:23:20 2021 +0200

    Update jgaurora_a6_0.12_detail.inst.cfg

commit 0dc529037e0b6676cdbe271f9b23495baa01a5e7
Author: criss-rasc <79998803+criss-rasc@users.noreply.github.com>
Date:   Wed Mar 3 20:12:59 2021 +0200

    Add files via upload

commit 872d2d689c512cea21d49ab9ede7856ce67d0c35
Author: criss-rasc <79998803+criss-rasc@users.noreply.github.com>
Date:   Wed Mar 3 20:09:12 2021 +0200

    Add files via upload

commit 5575926e436fc4e5481d6c4e3c2e5f962c7e8061
Author: criss-rasc <79998803+criss-rasc@users.noreply.github.com>
Date:   Wed Mar 3 20:08:46 2021 +0200

    Add files via upload

commit 77f40c009f35cac7cb5459b4828cc58fc8c34ee2
Author: criss-rasc <79998803+criss-rasc@users.noreply.github.com>
Date:   Wed Mar 3 20:08:14 2021 +0200

    Add files via upload

commit 88246c18ececa016e99d954b1056a459189545c4
Author: criss-rasc <79998803+criss-rasc@users.noreply.github.com>
Date:   Wed Mar 3 20:07:15 2021 +0200

    Add files via upload

    JGAurora A6 printer profile
2021-04-15 14:26:31 +02:00
Kostas Karmas
ebdd21410e Merge branch '4.9' of https://github.com/Ultimaker/Cura into 4.9 2021-04-14 17:20:42 +02:00
Kostas Karmas
361bd8c6b1 Don't crash if the returned error has no title
Fixes sentry issue CURA-23P
2021-04-14 17:20:02 +02:00
Ghostkeeper
adb5f28aaf
Filter out disallowed characters from job name
Took a while to figure out exactly what to do here. But the task itself is simple.
The Ultimaker software apparently doesn't accept special characters here. The regex here is exactly the inverse of the regex that they use to accept job names.

Done as a 5 minute fix.
2021-04-14 16:56:17 +02:00
Remco Burema
4c5dac0dfd
Improve logging, UX for cloud-upload-errors.
One of the reasons this bug (see parent of this commit ... or the issue nr if you have internal access) was so vague is that A. the user was insufficiently prompted, and B. no one could find anything in our logs.

CURA-8004
2021-04-14 14:30:42 +02:00
Remco Burema
9227c303c6
Fix 'uploaded print-job cache' set before the mesh upload.
Since we use that to detect when the mesh is already uploaded, and thus can be reprinted, this could cause problems, since, while we do properly set it to None when an error is returned, if the request never returns to us, or if a reprint is started while the mesh is still uploading, the print-job cache could be set while the mesh wasn't actually there yet. Which could in theory have maybe caused the problems we see.

CURA-8004
2021-04-14 13:59:21 +02:00
Remco Burema
18d6ae9515
Merge branch '4.9' 2021-04-14 12:32:26 +02:00
Remco Burema
db74bbda60
Merge pull request #9577 from Ultimaker/fix_segfault_arranging_without_disallowed_areas
Fix segfault when arranging without any disallowed areas
2021-04-14 12:06:33 +02:00
Jaime van Kessel
45f5a222f0
Downgrade version of certain qml impots to as low as they need to be 2021-04-14 10:58:05 +02:00
Ghostkeeper
9dba4d554f
Fix segfault when arranging without any disallowed areas
So libnest2d is giving a segfault when it's being triggered without any disallowed areas. This is because we then give a single disallowed area for the border around the build plate, and give this disallowed area 0 vertices. Because libnest2d doesn't do defensive coding here, it's going to crash, taking Cura along with it. The crash is in libnest2d's function 'libnest2d::_Item<ClipperLib::Polygon>::rightmostTopVertex()'.

This segfault started happening recently in Cura. However it only happens when there are no disallowed areas. Steps to reproduce the error are:
- Use Custom FFF Printer.
- Set the Adhesion Type setting to 'None'.
- Load any two models.

I tracked the segfault down to this commit: 74ddbaab4b . That commit by itself is slightly mysterious but looks fine to me. It did give the hint that this segfault might be caused by empty polygons though. So for that reason, I figured that filtering out the empty polygons here in the arranger might fix it; and indeed it does. Passing empty polygons as fixed/disallowed areas is useless and invalid anyway. Apparently libnest2d doesn't deal well with it, but we might as well not send those polygons over then.
2021-04-14 00:32:50 +02:00
Ghostkeeper
065826f2dd
Merge branch '4.9' 2021-04-13 17:30:54 +02:00
Remco Burema
e0e77327b5
Dropdown menu wasn't closing on MacOS.
CURA-8172
2021-04-13 13:38:58 +02:00
Ghostkeeper
8bc2c718a2
Update requirements.txt with new versions of dependencies
A lot of dependencies changed recently due to the Qt and Python upgrade.
2021-04-12 17:57:42 +02:00
Jaime van Kessel
6f59473971
Merge pull request #9569 from fieldOfView/fix_mirrored_cura_logo
Fix the Cura logo
2021-04-12 15:18:09 +02:00
fieldOfView
5877896fdd Fix the Cura logo
The mesh somehow got mirrored.
2021-04-12 13:55:13 +02:00
Jaime van Kessel
69df31629b
Merge branch '4.9' of github.com:Ultimaker/Cura 2021-04-12 13:50:13 +02:00
Ghostkeeper
be638955b1
Remove superfluous 'Again' phrasing
It sets the wrong tone.

Fixes #9449.
2021-04-12 13:27:19 +02:00
Kostas Karmas
5d18f697a3 Merge branch '4.9' into CURA-8154_Fix_sizing_of_Whats_New_pages 2021-04-12 12:41:26 +02:00
Kostas Karmas
14c11190fd Minor UI fixes in the What's new pages
* Add a top margin between the image and the text
* Change the text font to default
* Fix line break in the html page

CURA-8154
2021-04-12 12:38:36 +02:00
Kostas Karmas
17a4b40fd7 Change the font size to default in the changelog
So that it is consistent with the What's new pages

CURA-8154
2021-04-12 12:37:57 +02:00
Ghostkeeper
4fc91d4f6d
Add notification to connect the printer even if the printer is not network-connected
There could be other methods of connecting than the network connectivity of the UM3NetworkPrinting plug-in. For instance, perhaps other network connection plug-ins can provide information in this monitor stage. Or the user might want to use a USB cable.
I'm explicitly quite vague about how it should be connected because this label should work for all types of connections except UM3NetworkPrinting.

Fixes #9444.
2021-04-12 12:11:50 +02:00
Jaime van Kessel
f4f1dce941
Merge branch '4.9' of github.com:Ultimaker/Cura 2021-04-12 11:21:22 +02:00
Jaime van Kessel
43cc5fbca9
Add constant marker to supportsPrintJobQueue 2021-04-12 10:14:44 +02:00
Cláudio 'Patola' Sampaio
6e031bc9b5 Updated pt_BR translation 2021-04-11 17:56:57 +02:00
Jason Balaci
668df52f28 Add Sovol SV03 Cura profiles 2021-04-09 21:07:54 -04:00
Konstantinos Karmas
bd96978d37
Merge pull request #9538 from Ultimaker/CURA-7180_frozen_mac_keyring_fix
[CURA-7180] Explicitly give keyring-backend on Mac too.
2021-04-09 17:17:36 +02:00
Konstantinos Karmas
fe2d554ec0
Change the OS_X keyring backend module to macOS
Since the OS_X has been deprecated since keyring v22.0.0 and has been replaced by the macOS.

CURA-7180
2021-04-09 17:14:32 +02:00
Konstantinos Karmas
ce5db5e12e
Merge pull request #9545 from Ultimaker/CURA-8161_remove_donkey_and_other_UX_adventures
[CURA-8161] Remove donkey and other UX adventures
2021-04-09 16:32:19 +02:00
Kostas Karmas
97442ebefc Increase size of the profile override choice popup in preferences
This way the popup will show the entire text for all three options.

CURA-8161
2021-04-09 16:18:04 +02:00
Remco Burema
78dc5ce1c4
Merge branch '4.9' 2021-04-09 15:56:38 +02:00
Remco Burema
5ee8ca5ade
Merge pull request #9546 from Ultimaker/CURA-8167_Trim_the_changelog_to_make_it_load_faster
CURA-8167: Trim the changelog to show release notes of versions >=4.6.0
2021-04-09 15:55:36 +02:00
Remco Burema
c21b79926a
Merge pull request #9544 from Ultimaker/CURA-8166_Tab_between_print_setting_fields_is_broken
CURA-8166: Fix tab button not switching to the next print setting field
2021-04-09 15:43:54 +02:00
Kostas Karmas
183905d59b Trim the changelog to show release notes of versions >=4.6.0
The release notes of older versions can be found on GitHub.

CURA-8167
2021-04-09 15:34:17 +02:00