mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
[processing] fix refreshing of the toolbox after downloading scripts/models
This commit is contained in:
parent
bfcf92f728
commit
9bf3b2ef99
@ -168,6 +168,9 @@ class GetScriptsAndModelsDialog(BASE, WIDGET):
|
||||
else:
|
||||
reply.finished.connect(partial(loadFunction, reply))
|
||||
|
||||
while not reply.isFinished():
|
||||
QCoreApplication.processEvents()
|
||||
|
||||
def populateTree(self):
|
||||
self.uptodateItem = QTreeWidgetItem()
|
||||
self.uptodateItem.setText(0, self.tr('Installed'))
|
||||
@ -245,7 +248,7 @@ class GetScriptsAndModelsDialog(BASE, WIDGET):
|
||||
return self.uptodateItem
|
||||
|
||||
def cancelPressed(self):
|
||||
self.close()
|
||||
super(GetScriptsAndModelsDialog, self).reject()
|
||||
|
||||
def storeFile(self, reply, filename):
|
||||
"""store a script/model that has been downloaded"""
|
||||
@ -302,7 +305,7 @@ class GetScriptsAndModelsDialog(BASE, WIDGET):
|
||||
os.remove(path)
|
||||
|
||||
self.updateToolbox = len(toDownload) + len(toDelete) > 0
|
||||
self.close()
|
||||
super(GetScriptsAndModelsDialog, self).accept()
|
||||
|
||||
|
||||
class TreeItem(QTreeWidgetItem):
|
||||
|
Loading…
x
Reference in New Issue
Block a user