Commit graph

25274 commits

Author SHA1 Message Date
Kostas Karmas
a6d311a0f2
Fix incompatible mypy type 2021-05-03 10:48:47 +02:00
Kostas Karmas
daa0826190
Fix mypy issues with the DigitalLibrary plugin 2021-05-03 10:48:40 +02:00
Jaime van Kessel
c800c2850c
Decrease update interval to 60 sec
It's the same as what the rest uses and it should decrease the load on our servers a lot
2021-04-30 10:51:15 +02:00
Jim Watson
653dd42e87
Fix for crashes on Mac 10.13 in 2010 era hardware
Not sure I understand why this works - size_x/y are for the end of the line not the start
2021-04-28 16:35:47 +02:00
Kostas Karmas
5b74090dce Merge branch 'df49' into 4.9 2021-04-20 16:09:54 +02:00
fvrmr
0db033a690 Update change log
Fixed typo
2021-04-20 12:34:41 +02:00
Kostas Karmas
d972c505d0 Initial commit for the DL 2021-04-20 11:30:49 +02:00
fvrmr
e19d5545bc Update change log and whats new pages
Update change log
Update whats new pages
Update whats new images
2021-04-20 11:26:31 +02:00
Konstantinos Karmas
196c891331
Merge pull request #9590 from Ultimaker/4.9_smartling_translations
4.9 translations
2021-04-19 13:36:27 +02:00
jelle Spijker
1b02525c90
Added Traditional Chinese
Contributed by valen Chang
2021-04-16 20:24:28 +02:00
jelle Spijker
c9b6282a62
Re-enabled Czech translations
Contributes to CURA-8153
2021-04-16 19:43:43 +02:00
Jelle Spijker
c6c0a8d192
Merge pull request #9503 from sustmi/czech-translations-4.9
Add Czech translations for Cura 4.9
2021-04-16 19:35:19 +02:00
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
544b267447
Merge branch 'CURA-8004_fix_wrong_uploaded_print_job_cache' into 4.9 2021-04-16 12:05:06 +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
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
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
Remco Burema
e0e77327b5
Dropdown menu wasn't closing on MacOS.
CURA-8172
2021-04-13 13:38:58 +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
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
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
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
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
Remco Burema
ed7439f9cd
Fix various UX issues.
- Remove donkey: We where showing our donkey due to an unfortunate abbreviation/truncation of 'Colorblind Assist'. Now that should already not show in for a default install, which was fixed in the previous commit, but also just give the box some more space.
- Revert most of the rest of the preferences/general page back to the old controls (except for the combo-boxes, which needed to be upgraded in order to work on MacOS 11), pending a _proper_ redesign to the newer style of this page.

CURA-8161
2021-04-09 15:30:09 +02:00
Kostas Karmas
2027309863 Fix tab button not switching to the next print setting field
The signal `setActiveFocusToNextSetting` has an argument which wasn't being passed in the
`onSetActiveFocusToNextSetting()` function, which was causing the broken behavior.

CURA-8166
2021-04-09 15:19:38 +02:00
Remco Burema
8ee0e13394
Remove hack that made older code work to make newer code work.
Theme and Language (in the interface) would stay on 'Colorblind Assist' and empty respectively, even if the actual theme (and obvioulsy the language) where different.

CURA-8161
2021-04-09 15:12:28 +02:00