File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -67,8 +67,9 @@ def initGui(self):
67
67
"""Set up plugin UI elements."""
68
68
69
69
# settings page within the QGIS preferences menu
70
- self .options_factory = PlgOptionsFactory ()
71
- self .iface .registerOptionsWidgetFactory (self .options_factory )
70
+ if not self .options_factory :
71
+ self .options_factory = PlgOptionsFactory ()
72
+ self .iface .registerOptionsWidgetFactory (self .options_factory )
72
73
73
74
# -- Actions
74
75
self .action_browse_resources = QAction (
@@ -79,7 +80,7 @@ def initGui(self):
79
80
self .action_browse_resources .triggered .connect (self .run )
80
81
81
82
self .action_help = QAction (
82
- QIcon ( QgsApplication .getThemeIcon ("mActionHelpContents.svg" ) ),
83
+ QgsApplication .getThemeIcon ("mActionHelpContents.svg" ),
83
84
self .tr ("Documentation" ),
84
85
self .iface .mainWindow (),
85
86
)
You can’t perform that action at this time.
0 commit comments