mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
CURA-5035 Don't show required plugins
Also renamed folder of UserAgreementPlugin to UserAgreement
This commit is contained in:
parent
2751299fd3
commit
679f87ebb3
8 changed files with 34 additions and 28 deletions
|
@ -119,11 +119,6 @@ class Toolbox(QObject, Extension):
|
|||
# possible values include "overview", "detail" or "author".
|
||||
self._view_page = "loading"
|
||||
|
||||
# View selection defines what is currently selected and should be
|
||||
# used in filtering. This could be an author name (if _view_page is set
|
||||
# to "author" or a plugin name if it is set to "detail").
|
||||
self._view_selection = None
|
||||
|
||||
# Active package refers to which package is currently being downloaded,
|
||||
# installed, or otherwise modified.
|
||||
self._active_package = None
|
||||
|
@ -473,7 +468,6 @@ class Toolbox(QObject, Extension):
|
|||
Logger.log("w", "Toolbox: Received invalid JSON for showcase.")
|
||||
return
|
||||
|
||||
|
||||
else:
|
||||
# Ignore any operation that is not a get operation
|
||||
pass
|
||||
|
@ -511,6 +505,7 @@ class Toolbox(QObject, Extension):
|
|||
return
|
||||
|
||||
|
||||
|
||||
# Getter & Setters for Properties:
|
||||
# --------------------------------------------------------------------------
|
||||
def setDownloadProgress(self, progress: int):
|
||||
|
@ -550,15 +545,6 @@ class Toolbox(QObject, Extension):
|
|||
def viewPage(self) -> str:
|
||||
return self._view_page
|
||||
|
||||
def setViewSelection(self, selection: dict):
|
||||
selection.setParent(self)
|
||||
self._view_selection = selection
|
||||
self.viewChanged.emit()
|
||||
@pyqtProperty(QObject, fset = setViewSelection, notify = viewChanged)
|
||||
def viewSelection(self) -> dict:
|
||||
print(dir(self._view_selection))
|
||||
return self._view_selection
|
||||
|
||||
|
||||
|
||||
# Expose Models:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue