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