mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 15:07:28 -06:00
CURA-4390 add new menu item for plugins
This commit is contained in:
parent
a3eae31982
commit
b0fa87231c
4 changed files with 56 additions and 4 deletions
|
@ -23,9 +23,9 @@ i18n_catalog = i18nCatalog("cura")
|
|||
|
||||
|
||||
class PluginBrowser(QObject, Extension):
|
||||
def __init__(self, parent = None):
|
||||
def __init__(self, parent=None):
|
||||
super().__init__(parent)
|
||||
self.addMenuItem(i18n_catalog.i18nc("@menuitem", "Browse plugins"), self.browsePlugins)
|
||||
|
||||
self._api_version = 1
|
||||
self._api_url = "http://software.ultimaker.com/cura/v%s/" % self._api_version
|
||||
|
||||
|
@ -92,6 +92,7 @@ class PluginBrowser(QObject, Extension):
|
|||
def isDownloading(self):
|
||||
return self._is_downloading
|
||||
|
||||
@pyqtSlot()
|
||||
def browsePlugins(self):
|
||||
self._createNetworkManager()
|
||||
self.requestPluginList()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue