mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 15:07:28 -06:00
Merge branch 'CURA-4644-package-reader' into feature_material_marketplace
This commit is contained in:
commit
94b15b0498
549 changed files with 32616 additions and 18504 deletions
|
@ -223,6 +223,7 @@ class Toolbox(QObject, Extension):
|
|||
plugin["update_url"] = item["file_location"]
|
||||
return self._plugins_model
|
||||
|
||||
<<<<<<< HEAD:plugins/Toolbox/src/Toolbox.py
|
||||
@pyqtProperty(QObject, notify = showcaseMetadataChanged)
|
||||
def materialShowcaseModel(self):
|
||||
return self._showcase_model
|
||||
|
@ -238,6 +239,10 @@ class Toolbox(QObject, Extension):
|
|||
@pyqtProperty(bool, notify = packagesMetadataChanged)
|
||||
def dataReady(self):
|
||||
return self._packages_model is not None
|
||||
=======
|
||||
def _checkCanUpgrade(self, id, version):
|
||||
# TODO: This could maybe be done more efficiently using a dictionary...
|
||||
>>>>>>> CURA-4644-package-reader:plugins/PluginBrowser/PluginBrowser.py
|
||||
|
||||
def _checkCanUpgrade(self, id, version):
|
||||
# Scan plugin server data for plugin with the given id:
|
||||
|
@ -250,6 +255,7 @@ class Toolbox(QObject, Extension):
|
|||
return True
|
||||
return False
|
||||
|
||||
<<<<<<< HEAD:plugins/Toolbox/src/Toolbox.py
|
||||
def _checkAlreadyInstalled(self, id):
|
||||
metadata = self._plugin_registry.getMetaData(id)
|
||||
# We already installed this plugin, but the registry just doesn't know it yet.
|
||||
|
@ -342,6 +348,8 @@ class Toolbox(QObject, Extension):
|
|||
self._download_reply.abort()
|
||||
self._download_reply = None
|
||||
|
||||
=======
|
||||
>>>>>>> CURA-4644-package-reader:plugins/PluginBrowser/PluginBrowser.py
|
||||
def _onRequestFinished(self, reply):
|
||||
reply_url = reply.url().toString()
|
||||
if reply.error() == QNetworkReply.TimeoutError:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue