diff options
author | Jelle Spijker <spijker.jelle@gmail.com> | 2021-12-08 10:06:56 +0300 |
---|---|---|
committer | Jelle Spijker <spijker.jelle@gmail.com> | 2021-12-08 10:06:56 +0300 |
commit | 6c976bc9b0d989777be3ba9d65896fb92b8144dd (patch) | |
tree | d08f8dcb88e370bb1092d04b8087357c74f48aea /plugins/Marketplace/resources | |
parent | a61c3e9eff66eae187101f559e96aa264bef2c17 (diff) |
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
Diffstat (limited to 'plugins/Marketplace/resources')
-rw-r--r-- | plugins/Marketplace/resources/qml/Marketplace.qml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/Marketplace/resources/qml/Marketplace.qml b/plugins/Marketplace/resources/qml/Marketplace.qml index 5c56b0c41d..c04ef5c027 100644 --- a/plugins/Marketplace/resources/qml/Marketplace.qml +++ b/plugins/Marketplace/resources/qml/Marketplace.qml @@ -8,11 +8,13 @@ import QtQuick.Window 2.2 import UM 1.2 as UM import Cura 1.6 as Cura +import Marketplace 1.0 as Marketplace Window { id: marketplaceDialog property variant catalog: UM.I18nCatalog { name: "cura" } + property variant manager: Marketplace.Manager { } signal searchStringChanged(string new_search) @@ -232,7 +234,7 @@ Window { height: quitButton.height + 2 * UM.Theme.getSize("default_margin").width color: UM.Theme.getColor("primary") - visible: CuraApplication.getPackageManager().hasPackagesToRemoveOrInstall || plugin_registry.hasPluginsEnabledOrDisabled + visible: manager.showRestartNotification anchors { left: parent.left |