diff --git a/Shared.py b/Shared.py index ed271ea..96fb214 100644 --- a/Shared.py +++ b/Shared.py @@ -97,9 +97,6 @@ def populateParameterEditor(parameters): mw = FreeCADGui.getMainWindow() - # Tracks whether or not we have already added the variables editor - isPresent = False - # If the widget is open, we need to close it dockWidgets = mw.findChildren(QtGui.QDockWidget) for widget in dockWidgets: @@ -133,6 +130,4 @@ def populateParameterEditor(parameters): scrollArea.setStyleSheet("QLabel { color : black; }"); scrollArea.setWidget(newWidget) - widget.setWidget(scrollArea) - - isPresent = True \ No newline at end of file + widget.setWidget(scrollArea) \ No newline at end of file