mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
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
This commit is contained in:
parent
a61c3e9eff
commit
6c976bc9b0
4 changed files with 38 additions and 4 deletions
|
@ -300,8 +300,6 @@ class PackageModel(QObject):
|
|||
"""The state of the manage Enable Button of this package"""
|
||||
if self._is_enabling == ManageState.PROCESSING:
|
||||
return "busy"
|
||||
if self._is_recently_enabled:
|
||||
return "confirmed"
|
||||
if self._package_type == "material" or not self._is_installed:
|
||||
return "hidden"
|
||||
if self._is_installed and self._is_active:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue