kopia lustrzana https://github.com/inkstitch/inkstitch
properly notify GUI of Stroke being disabled (#43)
fixes #32: when changing from Stroke to Fill in params, the preview drew both.pull/44/head
rodzic
fabe5bcd32
commit
871802e4eb
|
@ -166,6 +166,9 @@ class ParamsTab(ScrolledPanel):
|
|||
self.set_toggle_state(not value)
|
||||
self.update_toggle_state(notify_pair=False)
|
||||
|
||||
if self.on_change_hook:
|
||||
self.on_change_hook(self)
|
||||
|
||||
def dependent_enable(self, enable):
|
||||
if enable:
|
||||
self.toggle_checkbox.Enable()
|
||||
|
@ -174,6 +177,9 @@ class ParamsTab(ScrolledPanel):
|
|||
self.toggle_checkbox.Disable()
|
||||
self.update_toggle_state()
|
||||
|
||||
if self.on_change_hook:
|
||||
self.on_change_hook(self)
|
||||
|
||||
def set_toggle_state(self, value):
|
||||
if self.toggle_checkbox:
|
||||
self.toggle_checkbox.SetValue(value)
|
||||
|
|
Ładowanie…
Reference in New Issue