Commit 2aaf5424 authored by sumpfralle's avatar sumpfralle

fixed teardown

fixed update of set list after unregistering a set


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@1146 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 223b0cdb
...@@ -37,9 +37,9 @@ class ParameterGroupManager(pycam.Plugins.PluginBase): ...@@ -37,9 +37,9 @@ class ParameterGroupManager(pycam.Plugins.PluginBase):
self.core.set("register_parameter_section", self.register_parameter_section) self.core.set("register_parameter_section", self.register_parameter_section)
self.core.set("register_parameter", self.register_parameter) self.core.set("register_parameter", self.register_parameter)
self.core.set("unregister_parameter_group", self.core.set("unregister_parameter_group",
self.unregister_parameter_section) self.unregister_parameter_group)
self.core.set("unregister_parameter_set", self.core.set("unregister_parameter_set",
self.unregister_parameter_section) self.unregister_parameter_set)
self.core.set("unregister_parameter_section", self.core.set("unregister_parameter_section",
self.unregister_parameter_section) self.unregister_parameter_section)
self.core.set("unregister_parameter", self.core.set("unregister_parameter",
...@@ -209,6 +209,9 @@ class ParameterGroupManager(pycam.Plugins.PluginBase): ...@@ -209,6 +209,9 @@ class ParameterGroupManager(pycam.Plugins.PluginBase):
"set '%s' from group '%s'" % (set_name, group_name)) "set '%s' from group '%s'" % (set_name, group_name))
return return
del group["sets"][set_name] del group["sets"][set_name]
event = group["changed_set_list_event"]
if event:
self.core.emit_event(event)
def unregister_parameter(self, group_name, section_name, name): def unregister_parameter(self, group_name, section_name, name):
if not group_name in self._groups: if not group_name in self._groups:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment