Jaime van Kessel
50f1afa5d9
Make plugin_registry protected
...
CURA-8587
2021-12-13 11:57:00 +01:00
Jaime van Kessel
eb11e92637
Rename local_packages_id to local_packages_ids
...
CURA-8587
2021-12-13 11:54:13 +01:00
Jelle Spijker
4f997319b0
Try sorting on section, update and display name
...
Contributes to CURA-8587
2021-12-10 18:31:55 +01:00
Jelle Spijker
e72655cc22
Moved busy/confirmed logic to QML
...
COntributes to CURA-8587
2021-12-10 17:38:20 +01:00
Jelle Spijker
d876b85259
Don't forcefully remove bundled packages when updating
...
Contributes to CURA-8587
2021-12-10 12:43:42 +01:00
Jelle Spijker
11c2ccd227
Use the ongoing_request queue
...
Contributes to CURA-8587
2021-12-10 12:41:37 +01:00
Jelle Spijker
a571e87553
Fixed the spinner
...
Contributes to CURA-8587
2021-12-10 12:39:44 +01:00
Jelle Spijker
9b7731a21b
Use package_infos to obtain the url
...
Contributes to CURA-8587
2021-12-10 11:50:38 +01:00
Jelle Spijker
ec8254bca9
Fixed old Marketplace update functionality
...
Contributes to CURA-8587
2021-12-10 11:50:02 +01:00
Jelle Spijker
e0754c7015
Disabled old toolbox functionality for updating
...
The signals messed up the new update process.
Contributes to CURA-8587 and relates to CURA-8588
2021-12-10 11:16:08 +01:00
Jelle Spijker
d9f77d7ffd
Moved the update logic to the PackageManager
...
Contributes to CURA-8587
2021-12-10 11:14:51 +01:00
casper
4991c39535
Make sure ManageButton
has the correct width and height
...
Cura 8587
2021-12-09 22:41:14 +01:00
Jelle Spijker
1adae61f39
Enable and disabled now toggle correctly
...
Contributes to: CURA-8587
2021-12-09 15:49:05 +01:00
Jelle Spijker
4c5ca22b24
Handle bundled packages which can be Downgraded
...
Contributes to: CURA-8587
2021-12-09 12:04:47 +01:00
Jelle Spijker
8a583a4323
Fixed Enable button text and style
...
Contributes to: CURA-8587
2021-12-09 10:27:27 +01:00
Jelle Spijker
0299bb1694
Fixed update buttons
...
Contributes to: CURA-8587
2021-12-09 10:24:26 +01:00
Jelle Spijker
8dc88e52c2
Don't show the Enable buttons for materials
...
Contributes to: CURA-8587
2021-12-09 10:03:56 +01:00
Jelle Spijker
51a77f683d
Moved stateManageButton logic out of the packageModel
...
Contributes to: CURA-8587
2021-12-09 09:56:41 +01:00
Remco Burema
8be1c29f0a
Merge pull request #11036 from Ultimaker/CURA-8736_revert_graphics_buffer
...
Revert graphics buffer update
2021-12-09 08:50:26 +01:00
Jelle Spijker
59470814e2
Show spinner again
...
Contributes to: CURA-8587
2021-12-09 08:30:22 +01:00
Jelle Spijker
7734bf5169
Show Install and Update buttons in the correct scenario's
...
Contributes to: CURA-8587
2021-12-09 07:58:14 +01:00
casper
8708fd0f3a
Merge remote-tracking branch 'origin/CURA-8587_disable_update_install_and_uninstall' into CURA-8587_disable_update_install_and_uninstall
...
# Conflicts:
# plugins/Marketplace/resources/qml/PackageCard.qml
# plugins/Marketplace/resources/qml/PackagePage.qml
2021-12-08 20:01:55 +01:00
casper
d405652db7
Combine dublicated elements from PackageCard
and PackagePage
into
...
reusable component `PackageCardHeader`
cura 8734
2021-12-08 19:41:50 +01:00
Jelle Spijker
9f41115bc1
Rework of the ManageButton
...
Now uses the internal signal
Contributes to: CURA-8587
2021-12-08 18:47:56 +01:00
Ghostkeeper
9674c54efb
Better type checking and handling of optionals
...
Adds type checking here and there to catch such errors in the future.
This makes it handle the optional fields of this model better.
Contributes to issue CURA-8730.
2021-12-08 17:36:09 +01:00
Jelle Spijker
4c516e8cec
Moved QObject out if TYPE_CHECKING statement
...
Contributes to: CURA-8587
2021-12-08 16:14:59 +01:00
Jelle Spijker
e4d469b6a1
Added some typing annotation
...
Contributes to: CURA-8587
2021-12-08 16:13:46 +01:00
Jelle Spijker
fb950e39c9
Merge pull request #11037 from Ultimaker/CURA-8734_Package_card_refactor
...
Cura 8734 package card refactor
2021-12-08 16:08:24 +01:00
casper
c72fd12ea2
Make ManageButton a reusable Component
...
cura 8734
2021-12-08 15:50:00 +01:00
Jelle Spijker
df0c502961
Removed redundant pyQtSlots
...
Contributes to: CURA-8587
2021-12-08 14:48:47 +01:00
Jelle Spijker
e0ca0d5446
Renamed recently_install to better depict the usage
...
This flag is an indication if the package. was recently un-/installed
Contributes to: CURA-8587
2021-12-08 14:46:34 +01:00
casper
4a436b5598
Display different types of manage buttons through Loader.sourceComponent
...
cura 8734
2021-12-08 14:46:29 +01:00
Jelle Spijker
fd508342fe
Renamed Manager to RestartManager
...
Contributes to: CURA-8587
2021-12-08 14:33:22 +01:00
casper
fb92f1f49a
Merge branch 'CURA-8587_disable_update_install_and_uninstall' into CURA-8734_Package_card_refactor
2021-12-08 14:28:31 +01:00
Remco Burema
27cb1d2d9f
Also have/keep the uninstalled status displayed.
...
'isRecentlyInstalled' was both for installing _and_ uninstalling. Will add the rename to the refactor later on.
part of CURA-8587
2021-12-08 14:04:19 +01:00
Ghostkeeper
41ebd593c5
Revert "Merge branch 'bremco-graphics_buffer_update'"
...
This reverts commit 5e60cc6208c16d966505e7a97d9bbbb0644d2716, reversing
changes made to c9feace0fbe02beb2089ec0af7be35127d7420f7.
2021-12-08 12:02:49 +01:00
Ghostkeeper
0da37ae6e7
Revert "Workaround for if layer is None somehow."
...
This reverts commit f0cb9dd39ef996225ebd6d7b8d5ffc986c90e2f0.
2021-12-08 12:02:42 +01:00
Jelle Spijker
db09954ac8
Fixed returning an error after the package is destroyed
...
Defensive programming
Contributes to: CURA-8587
2021-12-08 10:59:28 +01:00
casper
5e35e19f21
Split PackageCard into PackageCard and PackagePage
...
cura 8734
2021-12-08 10:53:51 +01:00
Jelle Spijker
7be2da587b
Automatic abortRequest for each API request
...
Defensive programming
Contributes to: CURA-8587
2021-12-08 10:18:08 +01:00
Jelle Spijker
453de95d12
Defensive programming
...
Long API calls might return after the Local or Remote
PackageList has been deconstructed. Somehow setting
the ownership in QML doesn't seem to work for this.
So we guard against this with a try catch block.
Contributes to: CURA-8587
2021-12-08 09:58:53 +01:00
Jelle Spijker
6c976bc9b0
Introduced a Manager to centralize plugin/package management
...
Should have done this from the start.
Will move other relevant scattered functions to this type.
For now it checks if the restart banner needs to show.
Taking into account that a user can toggle between enable
and disable without an actual restart. Even with multiple
plugins.
Contributes to: CURA-8587
2021-12-08 08:06:56 +01:00
Remco Burema
a61c3e9eff
Peristance of 'Installed' text.
...
part of CURA-8587
2021-12-07 21:23:54 +01:00
Jelle Spijker
3be6747e5d
Trying to set a persistent install managebutton
...
Contributes to: CURA-8587
2021-12-07 18:25:46 +01:00
Jelle Spijker
9e4258ef8b
Set the is_recently_installed flag
...
Contributes to: CURA-8587
2021-12-07 16:22:31 +01:00
Jelle Spijker
14bc196154
Hidden other manage buttons when the other is confirmed
...
Contributes to: CURA-8587
2021-12-07 16:09:07 +01:00
Remco Burema
d2a9d7d94d
Get 'already going to be installed' status in constructor.
...
Otherwise this isn't saved, and the state of 'installed, but needs restart' (as shown in the package card) won't be known to the package card (buttons), resulting in an 'Install' button when tabs are switched.
part of CURA-8587
2021-12-07 16:02:54 +01:00
Jelle Spijker
013e0b51e9
Storing multiple ongoing_requests
...
A bit of defensive programming
Contributes to: CURA-8587
2021-12-07 15:56:35 +01:00
Jelle Spijker
dae92c354c
Marketplace doesn't need to inherit from QObject
...
Review comment
Contributes to: CURA-8587
2021-12-07 15:32:36 +01:00
Jelle Spijker
ea4ec5ca27
Removed old debug logger messages
...
Contributes to: CURA-8587
2021-12-07 15:29:05 +01:00