From ac0bae23379d9f232f23ef9b63b87ff7e1af3788 Mon Sep 17 00:00:00 2001 From: Roy-043 <70520633+Roy-043@users.noreply.github.com> Date: Fri, 10 Dec 2021 19:08:32 +0100 Subject: [PATCH] Draft: fix Draft_Arc_3Points task panel issues Fixed the following task panel issues: 1. Wrong title and icon. 2. Continue toggle missing. --- src/Mod/Draft/draftguitools/gui_arcs.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/Mod/Draft/draftguitools/gui_arcs.py b/src/Mod/Draft/draftguitools/gui_arcs.py index a28f1e0c44..9c4fb7334f 100644 --- a/src/Mod/Draft/draftguitools/gui_arcs.py +++ b/src/Mod/Draft/draftguitools/gui_arcs.py @@ -510,8 +510,10 @@ class Arc_3Points(gui_base.GuiCommandSimplest): App.DraftWorkingPlane.setup() Gui.Snapper.getPoint(callback=self.getPoint, - movecallback=self.drawArc, - title=translate("draft","Arc by 3 points")) + movecallback=self.drawArc) + Gui.Snapper.ui.setTitle(title=translate("draft", "Arc by 3 points"), + icon="Draft_Arc_3Points") + Gui.Snapper.ui.continueCmd.show() def getPoint(self, point, info): """Get the point by clicking on the 3D view. @@ -551,6 +553,10 @@ class Arc_3Points(gui_base.GuiCommandSimplest): Gui.Snapper.getPoint(last=self.points[-1], callback=self.getPoint, movecallback=self.drawArc) + Gui.Snapper.ui.setTitle(title=translate("draft", "Arc by 3 points"), + icon="Draft_Arc_3Points") + Gui.Snapper.ui.continueCmd.show() + else: # If three points were already picked in the 3D view # proceed with creating the final object. @@ -565,6 +571,8 @@ class Arc_3Points(gui_base.GuiCommandSimplest): self.points[2]], primitive=False) self.tracker.off() self.doc.recompute() + if Gui.Snapper.ui.continueMode: + self.Activated() def drawArc(self, point, info): """Draw preview arc when we move the pointer in the 3D view.