File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
python/plugins/processing Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -163,6 +163,20 @@ class ProcessingPlugin:
163
163
164
164
def __init__ (self , iface ):
165
165
self .iface = iface
166
+ self .options_factory = None
167
+ self .drop_handler = None
168
+ self .item_provider = None
169
+ self .locator_filter = None
170
+ self .edit_features_locator_filter = None
171
+ self .initialized = False
172
+ self .initProcessing ()
173
+
174
+ def initProcessing (self ):
175
+ if not self .initialized :
176
+ self .initialized = True
177
+ Processing .initialize ()
178
+
179
+ def initGui (self ):
166
180
self .options_factory = ProcessingOptionsFactory ()
167
181
self .options_factory .setTitle (self .tr ('Processing' ))
168
182
iface .registerOptionsWidgetFactory (self .options_factory )
@@ -176,9 +190,7 @@ def __init__(self, iface):
176
190
iface .currentLayerChanged .connect (lambda _ : self .iface .invalidateLocatorResults ())
177
191
self .edit_features_locator_filter = InPlaceAlgorithmLocatorFilter ()
178
192
iface .registerLocatorFilter (self .edit_features_locator_filter )
179
- Processing .initialize ()
180
193
181
- def initGui (self ):
182
194
self .toolbox = ProcessingToolbox ()
183
195
self .iface .addDockWidget (Qt .RightDockWidgetArea , self .toolbox )
184
196
self .toolbox .hide ()
You can’t perform that action at this time.
0 commit comments