# HG changeset patch # User Andrey Skvortsov # Date 1491294871 -10800 # Node ID 0dc834721d8e01a25c228446899d778656be73fe # Parent cd03b8432541da9df59c691d97a441063df94820 add function block to variable panel if fb is added using toolbar Closes #25 diff -r cd03b8432541 -r 0dc834721d8e editors/Viewer.py --- a/editors/Viewer.py Tue Mar 28 19:48:51 2017 +0300 +++ b/editors/Viewer.py Tue Apr 04 11:34:31 2017 +0300 @@ -2546,6 +2546,8 @@ connector = input_connector break self.AddNewElement(block, bbox, wire, connector) + self.RefreshVariablePanel() + self.ParentWindow.RefreshPouInstanceVariablesPanel() dialog.Destroy() def AddNewVariable(self, bbox, exclude_input=False, wire=None):