mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 09:47:50 -06:00
Remove unused functions in PluginBrowser
This commit is contained in:
parent
53c7e2a01e
commit
8c4c52f915
1 changed files with 0 additions and 27 deletions
|
@ -301,10 +301,7 @@ class PluginBrowser(QObject, Extension):
|
||||||
|
|
||||||
return self._plugins_model
|
return self._plugins_model
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def _checkCanUpgrade(self, id, version):
|
def _checkCanUpgrade(self, id, version):
|
||||||
|
|
||||||
# TODO: This could maybe be done more efficiently using a dictionary...
|
# TODO: This could maybe be done more efficiently using a dictionary...
|
||||||
|
|
||||||
# Scan plugin server data for plugin with the given id:
|
# Scan plugin server data for plugin with the given id:
|
||||||
|
@ -317,30 +314,6 @@ class PluginBrowser(QObject, Extension):
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def _checkAlreadyInstalled(self, id):
|
|
||||||
metadata = self._plugin_registry.getMetaData(id)
|
|
||||||
# We already installed this plugin, but the registry just doesn't know it yet.
|
|
||||||
if id in self._newly_installed_plugin_ids:
|
|
||||||
return True
|
|
||||||
# We already uninstalled this plugin, but the registry just doesn't know it yet:
|
|
||||||
elif id in self._newly_uninstalled_plugin_ids:
|
|
||||||
return False
|
|
||||||
elif metadata != {}:
|
|
||||||
return True
|
|
||||||
else:
|
|
||||||
return False
|
|
||||||
|
|
||||||
def _checkInstallStatus(self, plugin_id):
|
|
||||||
if plugin_id in self._plugin_registry.getInstalledPlugins():
|
|
||||||
return "installed"
|
|
||||||
else:
|
|
||||||
return "uninstalled"
|
|
||||||
|
|
||||||
def _checkEnabled(self, id):
|
|
||||||
if id in self._plugin_registry.getActivePlugins():
|
|
||||||
return True
|
|
||||||
return False
|
|
||||||
|
|
||||||
def _onRequestFinished(self, reply):
|
def _onRequestFinished(self, reply):
|
||||||
reply_url = reply.url().toString()
|
reply_url = reply.url().toString()
|
||||||
if reply.error() == QNetworkReply.TimeoutError:
|
if reply.error() == QNetworkReply.TimeoutError:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue