- fixed the Panelize Tool so the box object stay as selected on new objects are loaded; any selection shape on canvas is deleted when clicking Panelize

This commit is contained in:
Marius Stanciu 2020-07-07 16:23:22 +03:00 committed by Marius
parent e7c369ab8e
commit f0fba5ccd1
2 changed files with 5 additions and 1 deletions

View File

@ -11,6 +11,7 @@ CHANGELOG for FlatCAM beta
- updated the Panelize Tool to save the source code for the panelized Excellon objects so it can be saved from the Save project tab context menu entry
- updated the Panelize Tool to save the source code for the panelized Geometry objects as DXF file
- fixed the Panelize Tool so the box object stay as selected on new objects are loaded; any selection shape on canvas is deleted when clicking Panelize
6.07.2020

View File

@ -180,6 +180,9 @@ class Panelize(AppTool):
def on_panelize(self):
name = self.ui.object_combo.currentText()
# delete any selection box
self.app.delete_selection_shape()
# Get source object to be panelized.
try:
panel_source_obj = self.app.collection.get_by_name(str(name))
@ -729,7 +732,7 @@ class PanelizeUI:
self.box_combo = FCComboBox()
self.box_combo.setModel(self.app.collection)
self.box_combo.setRootModelIndex(self.app.collection.index(0, 0, QtCore.QModelIndex()))
self.box_combo.is_last = True
# self.box_combo.is_last = True
self.box_combo.setToolTip(
_("The actual object that is used as container for the\n "