- small changes in Gerber UI

- in Geometry Editor make sure that after an edit is finished (correctly or forced) the QTree in the Editor UI is cleared of items
This commit is contained in:
Marius Stanciu
2020-02-03 00:43:38 +02:00
committed by Marius
parent c7074d71ba
commit 31c0cd0952
3 changed files with 26 additions and 24 deletions

View File

@@ -3627,6 +3627,12 @@ class FlatCAMGeoEditor(QtCore.QObject):
if self.fcgeometry:
self.fcgeometry.visible = True
# clear the Tree
self.tw.clear()
parent = self.tw.invisibleRootItem()
self.geo_parent = self.tw.addParent(
parent, _('Geometry Elements'), expanded=True, color=QtGui.QColor("#000000"), font=self.geo_font)
# hide the UI
self.geo_frame.hide()