Skip to content

Commit

Permalink
Draft: disable the Toolbar mode of Gui commands
Browse files Browse the repository at this point in the history
The `Taskview` mode (value 1) is set fixed in `DraftGui.py`
even if the widget shows the other value `Toolbar` (value 0),
as this mode is unmaintained and obsolete.
At the same time, clarify the behavior with a new tooltip.
  • Loading branch information
vocx-fc authored and yorikvanhavre committed Feb 5, 2020
1 parent 461309d commit ad977bb
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 62 deletions.
2 changes: 1 addition & 1 deletion src/Mod/Draft/DraftGui.py
Expand Up @@ -217,7 +217,7 @@ def __init__(self):
self.sourceCmd = None
self.cancel = None
self.pointcallback = None
self.taskmode = Draft.getParam("UiMode",1)
self.taskmode = 1 # Draft.getParam("UiMode",1)
#print("taskmode: ",str(self.taskmode))
self.paramcolor = Draft.getParam("color",255)>>8
self.color = QtGui.QColor(self.paramcolor)
Expand Down

0 comments on commit ad977bb

Please sign in to comment.