Skip to content
Permalink
Browse files

[Processing] Inform listeners when all algorithms have been loaded.

  • Loading branch information
radosuav
radosuav committed Oct 6, 2014
1 parent 81089a1 commit 6f94e9dc950e70a088ddd44077cb39fb8832af4f
Showing with 11 additions and 1 deletion.
  1. +11 −1 python/plugins/processing/core/Processing.py
@@ -151,7 +151,10 @@ def initialize():
ProcessingConfig.readSettings()
RenderingStyles.loadStyles()
Processing.loadFromProviders()


# Inform registered listeners that all providers' algorithms have been loaded
Processing.fireAlgsListHasChanged()

@staticmethod
def updateAlgsList():
"""Call this method when there has been any change that
@@ -182,6 +185,13 @@ def addAlgListListener(listener):
called for all registered listeners.
"""
Processing.listeners.append(listener)

@staticmethod
def removeAlgListListener(listener):
try:
Processing.listeners.remove(listener)
except:
pass

@staticmethod
def fireAlgsListHasChanged():

0 comments on commit 6f94e9d

Please sign in to comment.
You can’t perform that action at this time.