Skip to content

Commit bf51a00

Browse files
Draft: Fix switchUi method bug (FreeCAD#27422)
* Draft: Fix switchUi method bug * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 1046c36 commit bf51a00

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

src/Mod/Draft/DraftGui.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,6 +1006,14 @@ def switchUi(self, store=True):
10061006
self.state.append(self.xValue.isVisible())
10071007
self.state.append(self.yValue.isVisible())
10081008
self.state.append(self.zValue.isVisible())
1009+
self.state.append(self.labellength.isVisible())
1010+
self.state.append(self.labelangle.isVisible())
1011+
self.state.append(self.pointButton.isVisible())
1012+
self.state.append(self.lengthValue.isVisible())
1013+
self.state.append(self.angleValue.isVisible())
1014+
self.state.append(self.angleLock.isVisible())
1015+
self.state.append(self.isRelative.isVisible())
1016+
self.state.append(self.isGlobal.isVisible())
10091017
self.hideXYZ()
10101018
else:
10111019
if self.state:
@@ -1021,6 +1029,22 @@ def switchUi(self, store=True):
10211029
self.yValue.show()
10221030
if self.state[5]:
10231031
self.zValue.show()
1032+
if self.state[6]:
1033+
self.labellength.show()
1034+
if self.state[7]:
1035+
self.labelangle.show()
1036+
if self.state[8]:
1037+
self.pointButton.show()
1038+
if self.state[9]:
1039+
self.lengthValue.show()
1040+
if self.state[10]:
1041+
self.angleValue.show()
1042+
if self.state[11]:
1043+
self.angleLock.show()
1044+
if self.state[12]:
1045+
self.isRelative.show()
1046+
if self.state[13]:
1047+
self.isGlobal.show()
10241048
self.state = None
10251049

10261050
def setTitle(self, title, icon="Draft_Draft"):

0 commit comments

Comments
 (0)